제출 #1347879

#제출 시각아이디문제언어결과실행 시간메모리
1347879sash01Cluedo (IOI10_cluedo)C++20
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h>
#include "cluedo.h"
using namespace std;
int a[4];
void Solve()
{
    a[1]=1;
    a[2]=1;
    a[3]=1;
    while(1)
    {
        int ans=Theory(a[1],a[2],a[3]);
        if(ans==0)return;
        a[ans]++;
    }
}

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

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:12:17: error: 'Theory' was not declared in this scope
   12 |         int ans=Theory(a[1],a[2],a[3]);
      |                 ^~~~~~