제출 #1142130

#제출 시각아이디문제언어결과실행 시간메모리
1142130redimberoc콤보 (IOI18_combo)C++20
컴파일 에러
0 ms0 KiB
#include "combo.h"
using namespace std;
std::string guess_sequence(int N) {
  string p = "XXYYABYABXAY";
  if(n == 3){
    return p;
  }
}

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

combo.cpp: In function 'std::string guess_sequence(int)':
combo.cpp:5:6: error: 'n' was not declared in this scope
    5 |   if(n == 3){
      |      ^
combo.cpp:4:14: warning: control reaches end of non-void function [-Wreturn-type]
    4 |   string p = "XXYYABYABXAY";
      |              ^~~~~~~~~~~~~~