Submission #231574

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

Compilation message (stderr)

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:9:6: warning: 'b' may be used uninitialized in this function [-Wmaybe-uninitialized]
    r = Theory(a,b,c);
    ~~^~~~~~~~~~~~~~~
cluedo.cpp:9:6: warning: 'a' may be used uninitialized in this function [-Wmaybe-uninitialized]
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...