Submission #1143670

#TimeUsernameProblemLanguageResultExecution timeMemory
1143670sanoCluedo (IOI10_cluedo)C++20
Compilation error
0 ms0 KiB
#include "grader.h"
#include "cluedo.h"

void solve() {
	vector<int> p(3, 1);
	while (1) {
		int x = Theory(p[0], p[1], p[2]);
		if (x == 0) {
			return;
		}
		p[x - 1]++;
	}
	return;
}

Compilation message (stderr)

cluedo.cpp: In function 'void solve()':
cluedo.cpp:5:9: error: 'vector' was not declared in this scope
    5 |         vector<int> p(3, 1);
      |         ^~~~~~
cluedo.cpp:5:16: error: expected primary-expression before 'int'
    5 |         vector<int> p(3, 1);
      |                ^~~
cluedo.cpp:7:32: error: 'p' was not declared in this scope
    7 |                 int x = Theory(p[0], p[1], p[2]);
      |                                ^