This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#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;
return;
}
}
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 time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |