Submission #372865

# Submission time Handle Problem Language Result Execution time Memory
372865 2021-03-02T06:54:54 Z apostoldaniel854 Cluedo (IOI10_cluedo) C++14
Compilation error
0 ms 0 KB
#include <bits/stdc++.h>
#include "cluedo.h"
using namespace std;

void Solve () {
    vector <int> freq (3);
    for (int i = 0; i < 20; i++) {
        int ans = Theory (freq[0], freq[1], freq[2]);
        if (ans == 0) return;
        freq[ans - 1]++;
    }
}

Compilation message

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:8:19: error: 'Theory' was not declared in this scope
    8 |         int ans = Theory (freq[0], freq[1], freq[2]);
      |                   ^~~~~~