Submission #341483

#TimeUsernameProblemLanguageResultExecution timeMemory
341483IwanttobreakfreeCluedo (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,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; }

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