Submission #679981

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

Compilation message (stderr)

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