제출 #341477

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

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

/tmp/ccafQhhJ.o: In function `Theory(int, int, int)':
grader.c:(.text+0x0): multiple definition of `Theory(int, int, int)'
/tmp/cciK7hO9.o:cluedo.cpp:(.text+0x0): first defined here
collect2: error: ld returned 1 exit status