제출 #1175158

#제출 시각아이디문제언어결과실행 시간메모리
1175158tanapoomCluedo (IOI10_cluedo)C++20
컴파일 에러
0 ms0 KiB
void solve(){
  int M=1,L=1,W=1,a;
  while(true){
    a=Theory(M,L,W);
    if(a==0){
      return;
    }
    else if(a==1){
      M++;
    }
    else if(a==2){
      L++;
    }
    else if(a==3){
      W++;
    }
  }
}

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

cluedo.cpp: In function 'void solve()':
cluedo.cpp:4:7: error: 'Theory' was not declared in this scope
    4 |     a=Theory(M,L,W);
      |       ^~~~~~