제출 #1336577

#제출 시각아이디문제언어결과실행 시간메모리
1336577raul2008487슈퍼트리 잇기 (IOI20_supertrees)C++17
컴파일 에러
0 ms0 KiB
#include "combo.h"
using namespace std;
string guess_sequence(int N) {
  string S = "";
  int i, j;
  if(press(S + 'A') == 1){
    S += 'A';
  }
  else if(press(S + 'B') == 1){
    S += 'B';
  }
  else if(press(S + 'X') == 1){
    S += 'X';
  }
  else{
    S += 'Y';
  }
  vector<char> c;
  if(S == "A"){
    c.pb('B');
    c.pb('X');
    c.pb('Y');
  }
  else if(S == "B"){
    c.pb('A');
    c.pb('X');
    c.pb('Y');
  }
  else if(S == "X"){
    c.pb('A');
    c.pb('B');
    c.pb('Y');
  }
  else{
    c.pb('A');
    c.pb('B');
    c.pb('X');
  }
  for(i = 1; i < N; i++){
    bool found = 0;
    for(j = 0; j < 2; j++){
        if(press(S + c[j]) == (i + 1)){
            found = 1;
            S += c[j];
            break;
        }
    }
    if(!found){
        S += c[2];
    }
  }
  return S;
}

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

supertrees.cpp:1:10: fatal error: combo.h: No such file or directory
    1 | #include "combo.h"
      |          ^~~~~~~~~
compilation terminated.