Submission #639104

#TimeUsernameProblemLanguageResultExecution timeMemory
639104LucaLucaMCONSUL (info1cup19_consul)C++17
Compilation error
0 ms0 KiB
#include "grader.h" #include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; int Q = 25 + 5*(n > 50); Q = min(Q, n); for (int query = 0; query<Q; query++) { int i; i = chrono::duration_cast<chrono::nanoseconds>(chrono::high_resolution_clock::now().time_since_epoch()).count(); i = abs(i), i %= n, i++; i = kth(i); if (cnt(i) > n/3) { say_answer(i); return 0; } } say_answer(-1); return 0; }

Compilation message (stderr)

/usr/bin/ld: /tmp/ccziQaGV.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/cc80YLdU.o:consul.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/ccziQaGV.o: in function `main':
grader.cpp:(.text.startup+0xa8): undefined reference to `solve(int)'
collect2: error: ld returned 1 exit status