Output
/bin/run.sh: line 4: 18 Segmentation fault (core dumped) ./exe
Subarray Sum for two test cases
Hello @mohsin_khan the error was because inside the main you cant declare the arrray size as of the size you have declared.
but globally you can declare for 1e8 size but inside the main it should not be greater then the 1e6.
this was the error.
Happy Learning!!
1 Like
Thank You Sir. I understood but in the test _cases given that constrain n>=100000000. how to resolve
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.