i’m getting run errors and wrong answers in some cases
Kindly check my code
@Manvik-Arya-4391661007540658 you are passing array s as soln in function so there is no need to define a soln array globally.
and while initializing s array give both dimensions.
dont use long long int as making 2d array of long long int cause error.
and print answer till k<=n and l<=m.