제출 #569383

#제출 시각아이디문제언어결과실행 시간메모리
569383Aurora2005Cluedo (IOI10_cluedo)C++14
컴파일 에러
0 ms0 KiB
#include<bits/stdc++.h>
#include"cluedo.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:2:19: warning: extra tokens at end of #include directive
    2 | #include"cluedo.h";
      |                   ^
cluedo.cpp: In function 'void Solve()':
cluedo.cpp:8:13: error: 'Theory' was not declared in this scope
    8 |     int t = Theory(a,b,c);
      |             ^~~~~~