Submission #1347879

#TimeUsernameProblemLanguageResultExecution timeMemory
1347879sash01Cluedo (IOI10_cluedo)C++20
Compilation error
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]++;
    }
}

Compilation message (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]);
      |                 ^~~~~~