Submission #1248787

#TimeUsernameProblemLanguageResultExecution timeMemory
1248787AlmontherHotter Colder (IOI10_hottercolder)C++20
Compilation error
0 ms0 KiB
#include<bits/stdc++.h>
#include "grader.h"

#define ll long long
#define co cout<<

using namespace std;
// stuff

int HC(int N){
    ll l=1,r=N,last=r;
    Guess(l);
    while(l<r){
        ll x;
        if(l==last) x=Guess(r);
        else x=Guess(l);
        ll mid=(l+r)/2;
        if(x==0) return mid;
        if(last==r){
            if(x==-1) r=mid-1;
            else l=mid;
        }
        else{
            if(x==-1) l=mid+1;
            else r=mid;
        }
        last=mid;
    }
    return l;
}
int main(){

}

Compilation message (stderr)

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