제출 #648840

#제출 시각아이디문제언어결과실행 시간메모리
648840Litusiano콤보 (IOI18_combo)C++14
컴파일 에러
0 ms0 KiB
#include<combo.h> #include<bits/stdc++.h> using namespace std; string guess_sequence(int N){ string ans; for(int i = 1; i<=N; ++i){ string ans1 = ans; string ans2 = ans; ans1+='A'; ans2+='B'; //if(i == 3) cout<<ans1<<" "<<ans2<<endl; if(press(ans1+ans2) == i){ if(press(ans1) == i) ans+='A'; else ans+='B'; } else{ ans1 = ans; ans1+='X'; if(press(ans1) == i) ans+='X'; else ans+='Y'; } } return ans; } int main(){ //cout<<guess_sequence(10); }

컴파일 시 표준 에러 (stderr) 메시지

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