제출 #1024633

#제출 시각아이디문제언어결과실행 시간메모리
1024633vjudge1Cluedo (IOI10_cluedo)C++11
컴파일 에러
0 ms0 KiB

#include <bits/stdc++.h>
#include "grader.h"
#include "cluedo.h"

using namespace std;

void Solve()
{
	int i,j,k, res;

	i = 0;
	j = 0;
	k = 0;

	while(res = theory(i, j, k)) {
		if (res == 1) i++;
		else if (res == 3) k++;
		else j++;
	}
}


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

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:16:14: error: 'theory' was not declared in this scope; did you mean 'Theory'?
   16 |  while(res = theory(i, j, k)) {
      |              ^~~~~~
      |              Theory