제출 #243069

#제출 시각아이디문제언어결과실행 시간메모리
243069johuthaCluedo (IOI10_cluedo)C++17
컴파일 에러
0 ms0 KiB
#include "grader.h"
#include "cluedo.h"
#include <vector>

using namespace std;

void Solve(){
   vector<int> h(3, 0);
  
  for (int i = 0; i < 20; i++)
  {
    int r = theory(h[0], h[1], h[2]);
    if (r == 0) break;
    h[r - 1]++;
  }
}

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

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:12:13: error: 'theory' was not declared in this scope
     int r = theory(h[0], h[1], h[2]);
             ^~~~~~
cluedo.cpp:12:13: note: suggested alternative: 'Theory'
     int r = theory(h[0], h[1], h[2]);
             ^~~~~~
             Theory