Submission #303698

#TimeUsernameProblemLanguageResultExecution timeMemory
303698Gilgamesh콤보 (IOI18_combo)C++17
Compilation error
0 ms0 KiB
#include "combo.h" std::string guess_sequence(int N) { std::string strs[4] = {"A", "B", "X", "Y"}; std::string ans = ""; if(N == 3){ while(N--){ for(int i = 0; i < 4; ++i){ int cur = press(ans + strs[i]); if(cur) { ans += strs[i]; break; } } } } return S; }

Compilation message (stderr)

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