제출 #1303251

#제출 시각아이디문제언어결과실행 시간메모리
1303251yusifm콤보 (IOI18_combo)C++20
컴파일 에러
0 ms0 KiB
//pragma GCC optimize("O3") #include <bits/stdc++.H> #include "combo.h" using namespace std; string guess_sequence(int n) { int num; string ans; num=press("AB"); if(num==2) { ans="AB"; } else { if(num==1) { num=press("X"); if(num==1) { ans='A'; } else { ans='B'; } } else { num=press("X"); if(num==1) { ans='X'; } else { ans='Y'; } } } while(ans.size()!=n) { num=press(ans+'A'); if(num==ans.size()) { ans+='A'; } else { num=press(ans+'B'); if(num==ans.size()) { ans+='B'; } else { num=press(ans+'X'); if(num==ans.size()) { ans+='X'; } else { ans+='Y'; } } } } return ans; }

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

combo.cpp:2:10: fatal error: bits/stdc++.H: No such file or directory
    2 | #include <bits/stdc++.H>
      |          ^~~~~~~~~~~~~~~
compilation terminated.