제출 #303698

#제출 시각아이디문제언어결과실행 시간메모리
303698GilgameshCombo (IOI18_combo)C++17
컴파일 에러
0 ms0 KiB
#include "combo.h"

std::string guess_sequence(int N) {
    std::string strs[4] = {"A", "B", "X", "Y"};
    std::string ans = "";
    if(N == 3){
        while(N--){
            for(int i = 0; i < 4; ++i){
                int cur = press(ans + strs[i]);
                if(cur) {
                    ans += strs[i];
                    break;
                }
            }
        }
    }
    return S;
}

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

combo.cpp: In function 'std::string guess_sequence(int)':
combo.cpp:17:12: error: 'S' was not declared in this scope
   17 |     return S;
      |            ^