제출 #1175169

#제출 시각아이디문제언어결과실행 시간메모리
1175169natnichaCluedo (IOI10_cluedo)C++20
컴파일 에러
0 ms0 KiB
void Solve(){ int r; int m=1,l=1,w=1; while(true){ if(Theory(m,l,w)==0) return; if(Theory(m,l,w)==1){ m++; }else if(Theory(m,l,w)==2){ l++; }else if(Theory(m,l,w)==3){ w++; } } }

컴파일 시 표준 에러 (stderr) 메시지

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:5:13: error: 'Theory' was not declared in this scope
    5 |          if(Theory(m,l,w)==0) return;
      |             ^~~~~~
cluedo.cpp:6:13: error: 'Theory' was not declared in this scope
    6 |          if(Theory(m,l,w)==1){
      |             ^~~~~~