Submission #474003

#TimeUsernameProblemLanguageResultExecution timeMemory
474003ValiAntonieCluedo (IOI10_cluedo)C++14
0 / 100
1 ms200 KiB
#include "grader.h" #include "cluedo.h" void Solve(){ int r, a = 1, b = 1, c = 1, ok = 0; while(ok != 1){ while(r == 1){ r = Theory(a,b,c); a++; } while(r == 2){ r = Theory(a,b,c); b++; } while(r == 3){ r = Theory(a,b,c); c++; } ok = 1; } }

Compilation message (stderr)

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:7:12: warning: 'r' is used uninitialized in this function [-Wuninitialized]
    7 |    while(r == 1){
      |          ~~^~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...