Submission #679980

# Submission time Handle Problem Language Result Execution time Memory
679980 2023-01-09T17:50:53 Z heeheeheehaaw CONSUL (info1cup19_consul) C++17
Compilation error
0 ms 0 KB
#include <bits/stdc++.h>
#include "grader.h"

using namespace std;

void solve(int n)
{
    srand(435623);
    rand(), rand(), rand();

    for(int i = 1; i <= 50; i++)
    {
        int poz = (rand() % n) + 1;
        int val = kth(poz);
        int nr = cnt(val);

        if(nr > n / 3)
        {
            say_answer(val);
            return;
        }
    }
    say_answer(-1);
    return;
}

int main()
{
    return 0;
}

Compilation message

/usr/bin/ld: /tmp/ccCTPyaN.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/cc0YUDaK.o:consul.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status