제출 #474024

#제출 시각아이디문제언어결과실행 시간메모리
474024ValiAntonieCluedo (IOI10_cluedo)C++14
0 / 100
2 ms200 KiB
#include "grader.h" #include "cluedo.h" void Solve(){ int r, a = 1, b = 1, c= 1, ok = 0; for(int i=1;i<=3;i++){ r = Theory(a,b,c); if (r == 0){ ok = 1; return; } 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); } } }

컴파일 시 표준 에러 (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...