Submission #750951

#TimeUsernameProblemLanguageResultExecution timeMemory
750951B_ShahromCombo (IOI18_combo)C++17
Compilation error
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; }

Compilation message (stderr)

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