제출 #569382

#제출 시각아이디문제언어결과실행 시간메모리
569382Aurora2005Cluedo (IOI10_cluedo)C++14
컴파일 에러
0 ms0 KiB
#include<bits/stdc++.h>
using namespace std;

void Solve(){
  int a=1,b=1,c=1;
  for(;;){
    int t = Theory(a,b,c);
    if(t == 0) break;
    else if(t == 1) a++;
    else if(t == 2) b++;
    else c++;
  }
  return;
}

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

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:7:13: error: 'Theory' was not declared in this scope
    7 |     int t = Theory(a,b,c);
      |             ^~~~~~