Submission #777189

# Submission time Handle Problem Language Result Execution time Memory
777189 2023-07-08T18:53:49 Z LeaRouse CONSUL (info1cup19_consul) C++14
Compilation error
0 ms 0 KB
#include "grader.cpp"
#include    <map>
#define ll long long
using namespace std;
void solve(int n){
    for(int i=1;i<25;i++){
        int nc=kth(i%n +1);
        int awa=cnt(nc);
        if(awa>n/3){
            say_answer(awa);
            return;
        }
    }
    say_answer(-1); 
}

Compilation message

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