제출 #1248787

#제출 시각아이디문제언어결과실행 시간메모리
1248787AlmontherHotter Colder (IOI10_hottercolder)C++20
컴파일 에러
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(){ }

컴파일 시 표준 에러 (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