제출 #928749

#제출 시각아이디문제언어결과실행 시간메모리
928749Darren0724콤보 (IOI18_combo)C++17
컴파일 에러
0 ms0 KiB
#include "combo.h" #include "bits/stdc++.h" //#include "grader.cpp" using namespace std; string guess_sequence(int n) { string s,t="ABXY"; for (int i = 0; i < n; ++i) { int a=(press(s+"B"+s+"Y")>i); int b=(press(s+"B"+s+"Y")>i); s+=t[a+b*2]; } return S; }

컴파일 시 표준 에러 (stderr) 메시지

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