Below are 2 submissions I made for the above mentioned CSES problem.
Question link -> https://cses.fi/problemset/task/1158
AC submission -> https://cses.fi/problemset/result/10353320/
Runtime error submission -> https://cses.fi/problemset/result/10353300/
The only difference between the submissions is that in the AC submission, I commented out (#define int long long). Otherwise everything else is exactly the same.
Could someone explain why this happens? Is it some fault in my code? or something wrong with CSES website?