제출 #750951

#제출 시각아이디문제언어결과실행 시간메모리
750951B_Shahrom콤보 (IOI18_combo)C++17
컴파일 에러
0 ms0 KiB
string guess_sequence(int N)
{
    string last="";
    string mx="ABXY";
    while (last.size()!=N){
        for (int i=0; i<4; i++){
            string tl=last+mx[i];
            int d=press(tl);
            //cout<<d<<endl;
            if (d==tl.size()){
                last+=mx[i];
                break;
            }
        }
        //cout<<last<<endl;
    }
    return last;
}

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

combo.cpp:1:1: error: 'string' does not name a type
    1 | string guess_sequence(int N)
      | ^~~~~~