Submission #777140

#TimeUsernameProblemLanguageResultExecution timeMemory
777140LeaRouseCONSUL (info1cup19_consul)C++14
Compilation error
0 ms0 KiB
#include<bits/stdc++.h> #include <grader.h> #define fastio ios_base::sync_with_stdio(0); cin.tie(0); #define ll long long using namespace std; map<int,int>m; void say_answer(int n){ for(int i=0;i<n;i++){ m[kth(i+1)]++; } for(auto it:m){ if(it.second>n/3){ cout<<it.first<<endl; return; } } cout<<-1<<endl; }

Compilation message (stderr)

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