Submission #777219

#TimeUsernameProblemLanguageResultExecution timeMemory
777219LeaRouseCONSUL (info1cup19_consul)C++14
Compilation error
0 ms0 KiB
#include "grader.cpp" #include <bits/stdc++.h> #include <map> #define ll long long using namespace std; void solve(int n){ for(int i=1;i<25;i++){ int nc=kth(rand()%n +1); int awa=cnt(nc); if(awa>n/3){ say_answer(nc); return; } } say_answer(-1); }

Compilation message (stderr)

/usr/bin/ld: /tmp/ccT7uy7A.o: in function `kth(int)':
grader.cpp:(.text+0x0): multiple definition of `kth(int)'; /tmp/cczbOBuE.o:consul.cpp:(.text+0x0): first defined here
/usr/bin/ld: /tmp/ccT7uy7A.o: in function `cnt(int)':
grader.cpp:(.text+0xb0): multiple definition of `cnt(int)'; /tmp/cczbOBuE.o:consul.cpp:(.text+0xb0): first defined here
/usr/bin/ld: /tmp/ccT7uy7A.o: in function `say_answer(int)':
grader.cpp:(.text+0x160): multiple definition of `say_answer(int)'; /tmp/cczbOBuE.o:consul.cpp:(.text+0x160): first defined here
/usr/bin/ld: /tmp/ccT7uy7A.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/cczbOBuE.o:consul.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status