Submission #552283

#TimeUsernameProblemLanguageResultExecution timeMemory
552283pckienCombo (IOI18_combo)C++17
Compilation error
0 ms0 KiB
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:1:1: error: 'string' does not name a type
    1 | string guess_sequence(int N) {
      | ^~~~~~