Submission #212492

#TimeUsernameProblemLanguageResultExecution timeMemory
212492T0p_Cluedo (IOI10_cluedo)C++14
Compilation error
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]++;
    }
}

Compilation message (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