Why Program crashes?

Program crashes immidiately after the solve function is called. weird!!

Hey @tasfikrahman007
Please share your code in some IDE :slight_smile:

here is the code https://ide.codingblocks.com/s/352313

Hey @tasfikrahman007
Declare all the 2D arrays globally and initialize them inside function.

We declare them globally because max size aay we can initialize inside functions is close to10^6 so it sometimes give runtime/MLE whenever array of that size present inside
So try taking them outside .

If that doesn’t work I will check again

It got accepted :slight_smile: , thanks

1 Like