Submission #232227

#TimeUsernameProblemLanguageResultExecution timeMemory
232227MickyAngelCombo (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=""; if(press("A")==1) s+="A"; else if(press("B")==1) s+="B"; else if(press("X")==1) s+="X"; else if(press("Y")==1) s+="Y"; if(press("A")==2) s+="A"; else if(press("B")==2) s+="B"; else if(press("X")==2) s+="X"; else if(press("Y")==2) s+="Y"; if(press("A")==3) s+="A"; else if(press("B")==3) s+="B"; else if(press("X")==3) s+="X"; else if(press("Y")==3) s+="Y"; return S; }

Compilation message (stderr)

combo.cpp: In function 'std::string guess_sequence(int)':
combo.cpp:23:12: error: 'S' was not declared in this scope
   23 |     return S;
      |            ^