Блог пользователя lucas1809

Автор lucas1809, история, 4 года назад, По-английски

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://mirror.codeforces.com/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

  • Проголосовать: нравится
  • +5
  • Проголосовать: не нравится

»
4 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

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

int par, impar = 0;