Submission #474013

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

Compilation message (stderr)

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:5:31: warning: variable 'ok' set but not used [-Wunused-but-set-variable]
    5 |    int r, a = 1, b = 1, c= 1, ok = 0;
      |                               ^~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...