Code works fine on coding blocks IDE. But shows “no-result” error on submission.
Can't find the error in my code
Hey Harsh, mention the problem’s exact name also.
Mximum Subarray sum.
Size of Array you used - arr[100]
but In problem N<=100000
So, just increase the size of Array to arr[1000000] and arrmax[1000000].
Thanks a lot. It worked. Is there any other possibility due to which this error can arise. i.e., “No-output” ?
It totally depends on how coding blocks compiler was made.
Generally we categorize the errors into these basic categories.
Basic Error :
Run time error (when you are referring to invalid index or memory)
Wrong Answer (when your logic is wrong)
Time Limit Exceeded (when your code takes more time to solve than expected).
hit like if u get it
1 Like