Submission #212492

# Submission time Handle Problem Language Result Execution time Memory
212492 2020-03-23T07:59:34 Z T0p_ Cluedo (IOI10_cluedo) C++14
Compilation error
0 ms 0 KB
#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

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