Submission #552287

#TimeUsernameProblemLanguageResultExecution timeMemory
552287pckien콤보 (IOI18_combo)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h>


string guess_sequence(int N) {

    string s;
    char mov[5];

    mov[1] = 'X';
    mov[2] = 'Y';
    mov[3] = 'A';
    mov[4] = 'B';

    int cnt = 0;
    fto (i, 1, N) {
        fto (j, 1, 4) {
            s += mov[j];

            int t = press(s);
            if (t > cnt) {
                cnt = t;
                break;
            }
            s.pop_back();
        }
    }
    return s;
}

Compilation message (stderr)

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