lucas1809's blog

By lucas1809, history, 4 years ago, In English

My code is giving "Wrong answer" with "Probably, the solution is executed with error 'uninitialized value usage' on the line 66" as an add up. When I looked for the error, It said my code was returning some value for some test case, but It's not. I don't understand it.

https://codeforces.me/contest/1370/submission/84590348

This is the submission. I would apreciate if someone helped me. If It helps, the question in from round 651 (div 2), question C

Thanks in advance

  • Vote: I like it
  • +5
  • Vote: I do not like it

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

In function factor() your variable par is not initalized, then returned, and used.

int par, impar = 0;