Submission #1267014

#TimeUsernameProblemLanguageResultExecution timeMemory
1267014ti24dung_ntCluedo (IOI10_cluedo)C++20
Compilation error
0 ms0 KiB
#include<bits/stdc++.h> using namespace std; void Solve() { bool found = false; int murd = 1, loca = 1, weap = 1; while(found == false) { cout << "Theory(" << murd << "," << loca << "," << weap << ")" << endl; cout.flush(); int type; cin >> type; if(type == 0) { found = true; } else if(type == 1) { if(murd < 6) ++murd; } else if(type == 2) { if(loca < 10) ++loca; } else { if(weap < 6) ++weap; } } } int main() { Solve(); }

Compilation message (stderr)

/usr/bin/ld: /tmp/ccfZLQL7.o: in function `main':
grader.c:(.text.startup+0x0): multiple definition of `main'; /tmp/ccVF0Qg2.o:cluedo.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status