제출 #372865

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

void Solve () {
    vector <int> freq (3);
    for (int i = 0; i < 20; i++) {
        int ans = Theory (freq[0], freq[1], freq[2]);
        if (ans == 0) return;
        freq[ans - 1]++;
    }
}

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

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:8:19: error: 'Theory' was not declared in this scope
    8 |         int ans = Theory (freq[0], freq[1], freq[2]);
      |                   ^~~~~~