제출 #341483

#제출 시각아이디문제언어결과실행 시간메모리
341483IwanttobreakfreeCluedo (IOI10_cluedo)C++98
컴파일 에러
0 ms0 KiB
#include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
#include "grader.h"
#include "cluedo.h"

using namespace std;

int Murderer,Location,Weapon,M,L,W;

int Solve(int A,int B,int C){
	
	if (M!=A){
	return 1;
	}
	else if (L!=B){
	return 2;
	}
	else if (W!=C){
	return 3;
	}
	else{
	return 0;
	}	
}

int main(){
	cin>>Murderer>>Location>>Weapon;
	M=1;
	L=2;
	W=3;
	while(Solve(Murderer,Location,Weapon)!=0){
	cin>>Murderer>>Location>>Weapon;
}
	cin>>Murderer>>Location>>Weapon;
	M=3;
	L=2;
	W=1;
	while(Solve(Murderer,Location,Weapon)!=0){
	cin>>Murderer>>Location>>Weapon;
}
	cin>>Murderer>>Location>>Weapon;
	M=4;
	L=4;
	W=4;
	while(Solve(Murderer,Location,Weapon)!=0){
	cin>>Murderer>>Location>>Weapon;
}
return 0;
}

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

/tmp/cceNVRrI.o: In function `main':
grader.c:(.text.startup+0x0): multiple definition of `main'
/tmp/ccO1hJGL.o:cluedo.cpp:(.text.startup+0x0): first defined here
/tmp/cceNVRrI.o: In function `main':
grader.c:(.text.startup+0x49): undefined reference to `Solve()'
collect2: error: ld returned 1 exit status