제출 #1223863

#제출 시각아이디문제언어결과실행 시간메모리
1223863rhm_ganCluedo (IOI10_cluedo)C++20
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h>
using namespace std;

#ifdef LOCAL
#include "debug.h"
#else
#define dbg(...) 42
#endif

void Solve() {
	set<int> a, b, c;
	for (int i = 1; i <= 10; i++) {
		if (i <= 6) {
			a.insert(i);
			b.insert(i);
		}
		c.insert(i);
	}

	for (int i = 0; i < 19; i++) {
		int A = *a.rbegin();
		int B = *b.rbegin();
		int C = *c.rbegin();
		int x = Theory(A, B, C);
		if (x == 1) a.erase(A);
		if (x == 2) b.erase(B);
		if (x == 3) c.erase(C);
	}
	int A = *a.rbegin();
	int B = *b.rbegin();
	int C = *c.rbegin();
	Theory(A, B, C);
	return;
}

컴파일 시 표준 에러 (stderr) 메시지

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:24:25: error: 'Theory' was not declared in this scope
   24 |                 int x = Theory(A, B, C);
      |                         ^~~~~~
cluedo.cpp:32:9: error: 'Theory' was not declared in this scope
   32 |         Theory(A, B, C);
      |         ^~~~~~