Submission #232217

#TimeUsernameProblemLanguageResultExecution timeMemory
232217jhtanCombo (IOI18_combo)C++14
Compilation error
0 ms0 KiB
using namespace std; string guess_sequence(int N) { string p, s = ""; if (press("A") == 1) s += "A"; if (press("B") == 1) s += "B"; if (press("X") == 1) s += "X"; if (press("Y") == 1) s += "Y"; if (press(s + "A") == 2) s += "A"; if (press(s + "B") == 2) s += "B"; if (press(s + "X") == 2) s += "X"; if (press(s + "Y") == 2) s += "Y"; if (press(s + "A") == 3) s += "A"; if (press(s + "B") == 3) s += "B"; if (press(s + "X") == 3) s += "X"; if (press(s + "Y") == 3) s += "Y"; return s; }

Compilation message (stderr)

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