Submission #552284

#TimeUsernameProblemLanguageResultExecution timeMemory
552284pckienCombo (IOI18_combo)C++17
Compilation error
0 ms0 KiB
string s; char mov[5]; string guess_sequence(int N) { 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 s;
      | ^~~~~~
combo.cpp:4:1: error: 'string' does not name a type
    4 | string guess_sequence(int N) {
      | ^~~~~~