Submission #1013303

#TimeUsernameProblemLanguageResultExecution timeMemory
1013303hasan2006Cluedo (IOI10_cluedo)C++17
Compilation error
0 ms0 KiB
//#include "grader.h"
//#include "cluedo.h"
#include <bits/stdc++.h>
using namespace std;

void Solve(){
    deque<int> v[4];
    for(int i = 1; i <= 6; i++)
        v[0].push_back(i);
    for(int i = 1; i <= 10; i++)
        v[1].push_back(i);
    for(int i = 1; i <= 6; i++)
        v[2].push_back(i);
    while(1){
        int a[4];
        for(int i = 1; i <= 3; i++)
            a[i] = v[i].back();
        int x = Theory(a[0] , a[1] , a[2]);
        if(!x) return;
        v[x].pop_back();
    }
}

Compilation message (stderr)

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