답안 #312130

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
312130 2020-10-12T12:27:21 Z blue 콤보 (IOI18_combo) C++11
컴파일 오류
0 ms 0 KB
#include "combo.h"
#include <string>

string guess_sequence(int N)
{
    for(string A:{"A", "B", "X", "Y"})
    {
        for(string B:{"A", "B", "X", "Y"})
        {
            if(A == B) continue;
            for(string C:"A", "B", "X", "Y")
            {
                if(A == C) continue;
                if(press(A+B+C) == 3) return A+B+C;
            }
        }
    }
}

Compilation message

combo.cpp:4:1: error: 'string' does not name a type; did you mean 'stdin'?
    4 | string guess_sequence(int N)
      | ^~~~~~
      | stdin