Hello. I am trying to submit my solution, which works on my machine but when I run on the codeforces engine a runtime error is presented the following message is shown: Probably, the solution is executed with error 'uninitiaized value usage' on the line 28. The link for the code follows: https://ideone.com/ZE2U7l I really cannot see why this error is happening.
EDIT 1: Here is the link of the question: https://codeforces.me/contest/1312/problem/C








Don't break in between taking inputs. This will result in taking wrong input in the upcoming testcases
Are you talking about the break at line 34? If yes, it should not affect the input reading order, since the loop at line 21 will keep iterating regardless of executing the break.
Yes,my bad...
pretests are kindy shitty
Well, in your solution you have declared temp as long long int, but taken input using %ld, instead use %lld, it might work. Hope it works.