Submission #369484

# Submission time Handle Problem Language Result Execution time Memory
369484 2021-02-21T18:40:38 Z NachoLibre Cluedo (IOI10_cluedo) C++17
Compilation error
0 ms 0 KB
#include <bits/stdc++.h>
using namespace std;
#define sz(a) ((int)(a).size())
typedef vector<int> vint;
typedef vector<vint> vvint;
#ifndef wambule
#include "cluedo.h"
#else
int Theory(int, int, int) { return 0; }
#endif

void Solve() {
	int x, y, z, a;
	x = y = z = 1;
	while(a = Theory(x, y, z)) {
		++(a == 1 ? x : a == 2 ? y : z);
	}
}

#ifdef wambule
int main() {
	ios::sync_with_stdio(0);
	cin.tie(0);
	return 0;
}
#endif

Compilation message

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:15:12: error: 'Theory' was not declared in this scope
   15 |  while(a = Theory(x, y, z)) {
      |            ^~~~~~