Submission #679980

#TimeUsernameProblemLanguageResultExecution timeMemory
679980heeheeheehaawCONSUL (info1cup19_consul)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #include "grader.h" using namespace std; void solve(int n) { srand(435623); rand(), rand(), rand(); for(int i = 1; i <= 50; i++) { int poz = (rand() % n) + 1; int val = kth(poz); int nr = cnt(val); if(nr > n / 3) { say_answer(val); return; } } say_answer(-1); return; } int main() { return 0; }

Compilation message (stderr)

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