Submission #86928

#TimeUsernameProblemLanguageResultExecution timeMemory
86928tjdgus4384Combo (IOI18_combo)C++14
Compilation error
0 ms0 KiB
#include<cstdio> #include<"combo.h"> #include<string> using namespace std; string x[4] = {"A", "B", "X", "C"}; string guess_sequence(int n) { string p = ""; int f, a; for(int i = 0;i < 4;i++) { a = press(x[i]); if(a == 1) f = i; } p = x[f]; for(int i = 1;i < n;i++) { for(int j = 0;j < 4;j++) { if(j == f) continue; string q = p + x[j]; a = press(q); if(a == i + 1) { p += x[j]; break; } } } return p; }

Compilation message (stderr)

combo.cpp:2:9: fatal error: "combo.h": No such file or directory
    2 | #include<"combo.h">
      |         ^~~~~~~~~~~
compilation terminated.