Submission #777219

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

Compilation message

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