제출 #212492

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

void Solve()
{
    int arr[4] = {0, 1, 1, 1};
    while(true)
    {
        int ret = Theory(arr[1], arr[2], arr[3]);
        if(!ret) return ;
        arr[ret]++;
    }
}

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

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:9:19: error: 'Theory' was not declared in this scope
         int ret = Theory(arr[1], arr[2], arr[3]);
                   ^~~~~~
cluedo.cpp:9:19: note: suggested alternative: 'short'
         int ret = Theory(arr[1], arr[2], arr[3]);
                   ^~~~~~
                   short