제출 #474003

#제출 시각아이디문제언어결과실행 시간메모리
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; } }

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