제출 #344928

#제출 시각아이디문제언어결과실행 시간메모리
344928Alma콤보 (IOI18_combo)C++14
컴파일 에러
0 ms0 KiB
#include <iostream>
#include <vector>
#include <string>
#include <grader.h>
#include <combo.h>
using namespace std;

string guess_sequence(int N) {
    string S = "";
    vector<char> buttons = {'A', 'B', 'X', 'Y'};

    for (int i = 0; i < buttons.size(); i++) {
        if (press(S + buttons[i]) == 1) {
            S += buttons[i];
            buttons.erase(buttons.begin()+i);
        }
    }    
    for (int j = 2; j <= N; j++) {
        for (char c: buttons) {
            if (press(S + c) == j) {S += c;}
        }
    }
    return S;
}

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

combo.cpp:4:10: fatal error: grader.h: No such file or directory
    4 | #include <grader.h>
      |          ^~~~~~~~~~
compilation terminated.