답안 #356442

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
356442 2021-01-23T11:31:21 Z Mefarnis Cluedo (IOI10_cluedo) C++14
컴파일 오류
0 ms 0 KB
#include <bits/stdc++.h>
#include "cluedo.h"
// #include "grader.h"
using namespace std;

void Solve() {
	int ar[3] = {1,1,1};
	int res = Theory(ar[0],ar[1],ar[2]);
	while(res != 0) {
		ar[res-1]++;
		res = Theory(ar[0],ar[1],ar[2]);
	}
}

Compilation message

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