Submission #636395

#TimeUsernameProblemLanguageResultExecution timeMemory
636395SonCombo (IOI18_combo)C++14
Compilation error
0 ms0 KiB
string guessing( int n ){ string ans = ""; for ( int i = 1; i <= n; i++ ){ string t = ans + "A"; if ( press(t) == i ) { ans += "A"; continue; } t = ans + "B"; if ( press(t) == i ){ ans += "B"; continue; } t = ans + "X"; if ( press(t) == i ){ ans += "X"; continue; } ans += "Y"; } return (ans); }

Compilation message (stderr)

combo.cpp:2:1: error: 'string' does not name a type
    2 | string guessing( int n ){
      | ^~~~~~