제출 #341474

#제출 시각아이디문제언어결과실행 시간메모리
341474IwanttobreakfreeCluedo (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,A,B,C; int Solve(int M,int L,int W){ if (M!=Murderer){ return 1; } else if (L!=Location){ return 2; } else if (W!=Weapon){ return 3; } else{ return 0; } } int main(){ cin>>Murderer>>Location>>Weapon; while(Solve(A,B,C)!=0){ cin>>A>>B>>C; cout<<Solve(A,B,C)<<endl; } }

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

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