matheusdiogenesandrade's blog

By matheusdiogenesandrade, history, 7 years ago, In English

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

| Write comment?
»
7 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Don't break in between taking inputs. This will result in taking wrong input in the upcoming testcases

»
7 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

pretests are kindy shitty

»
7 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

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.