Submission #1353992

#TimeUsernameProblemLanguageResultExecution timeMemory
1353992lizi14CONSUL (info1cup19_consul)C++20
Compilation error
0 ms0 KiB
#include <bits/stdc++.h>
using namespace std;
#define int long long
#include "grader.h"

void solve(int n){
    srand(time(0));
    int hi=0;
    for(int i=0; i<50; i++){
        int bati=rand();
        if(kth(bati)> n/3){
            hi=1;
            say_answer(bati);
            break;
        }
        
    }
    if(hi==0){
        say_answer(-1);
    }
    
}

Compilation message (stderr)

/usr/bin/ld: /tmp/ccENVTvU.o: in function `main':
grader.cpp:(.text.startup+0xac): undefined reference to `solve(int)'
/usr/bin/ld: /tmp/ccFkhi2r.o: in function `solve(long long)':
consul.cpp:(.text+0x52): undefined reference to `kth(long long)'
/usr/bin/ld: consul.cpp:(.text+0x63): undefined reference to `say_answer(long long)'
/usr/bin/ld: consul.cpp:(.text+0x7c): undefined reference to `say_answer(long long)'
collect2: error: ld returned 1 exit status