Submission #341474

#TimeUsernameProblemLanguageResultExecution timeMemory
341474IwanttobreakfreeCluedo (IOI10_cluedo)C++98
Compilation error
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; } }

Compilation message (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