제출 #793891

#제출 시각아이디문제언어결과실행 시간메모리
793891I_Love_EliskaM_Cluedo (IOI10_cluedo)C++14
컴파일 에러
0 ms0 KiB
#include "cluedo.h"
#include <bits/stdc++.h>
using namespace std;
#define forn(i,n)
#define pb push_back

void solve() {
   vector<int> p(3,1);
   while (1) {
      int x=Theory(p[0],p[1],p[2])-1;
      if (x==-1) return;
      p[x]++;
   }
}

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

cluedo.cpp: In function 'void solve()':
cluedo.cpp:10:13: error: 'Theory' was not declared in this scope
   10 |       int x=Theory(p[0],p[1],p[2])-1;
      |             ^~~~~~