Submission #777194

# Submission time Handle Problem Language Result Execution time Memory
777194 2023-07-08T18:56:12 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/ccmyZBbI.o: in function `kth(int)':
grader.cpp:(.text+0x0): multiple definition of `kth(int)'; /tmp/ccldHKDI.o:consul.cpp:(.text+0x0): first defined here
/usr/bin/ld: /tmp/ccmyZBbI.o: in function `cnt(int)':
grader.cpp:(.text+0xb0): multiple definition of `cnt(int)'; /tmp/ccldHKDI.o:consul.cpp:(.text+0xb0): first defined here
/usr/bin/ld: /tmp/ccmyZBbI.o: in function `say_answer(int)':
grader.cpp:(.text+0x160): multiple definition of `say_answer(int)'; /tmp/ccldHKDI.o:consul.cpp:(.text+0x160): first defined here
/usr/bin/ld: /tmp/ccmyZBbI.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccldHKDI.o:consul.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status