Submission #232268

#TimeUsernameProblemLanguageResultExecution timeMemory
232268YisuaCombo (IOI18_combo)C++14
Compilation error
0 ms0 KiB
#include "combo.h" #include <iostream> using namespace std; std::string guess_sequence(int N) { string p,s=""; for(int i=0;i>N;i++){ if(press(s+"A")==i+1)s+="A"; else if(press(s+"B")==i+1)s+="B"; else if(presss+("X")==i+1)s+="X"; else if(press(s+"Y")==i+1)s+="Y"; } return s; }

Compilation message (stderr)

combo.cpp: In function 'std::string guess_sequence(int)':
combo.cpp:10:10: error: 'presss' was not declared in this scope; did you mean 'press'?
   10 |  else if(presss+("X")==i+1)s+="X";
      |          ^~~~~~
      |          press