Submission #103282

#TimeUsernameProblemLanguageResultExecution timeMemory
103282aviroop123Combo (IOI18_combo)C++14
Compilation error
0 ms0 KiB
string guess_subsequence(int N){ string s = ""; vector<char> v = {'A', 'B', 'X', 'Y'}; fr(i, 1, N){ for(char ch : v){ s += ch; if(press(s) == i) break; s.pop_back(); } } return s; }

Compilation message (stderr)

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