Maximum subarray sum

What is wrong in this code it is showing bus error

hello @shubhangis248

it is working fine.
pls refresh the tab and submit again

I did but it is still showing the same bus error

declare ur array as global ( check maximum value of n and declare that size array on top and use it )

and then try

It is printing infinite number of 0

share ur updated code hre

@shubhangis248

this one is also working .

pls open ur account in incognitio and then try .
if still u face same issue then inform it to support team
emai id-> [email protected]

runguard: warning: timelimit exceeded (wall time): aborting command
runguard: warning: command terminated with signal 15

now it is showing this error

@shubhangis248
i guess u r not giving any input while compiling

it is assignment show how can i give input it should satisfy test cases

click on submit button and share the screenshot that u r getting

On submission,it passed all test cases

is ur doubt clear now?

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.