Submission #1142130

#TimeUsernameProblemLanguageResultExecution timeMemory
1142130redimberoc콤보 (IOI18_combo)C++20
Compilation error
0 ms0 KiB
#include "combo.h"
using namespace std;
std::string guess_sequence(int N) {
  string p = "XXYYABYABXAY";
  if(n == 3){
    return p;
  }
}

Compilation message (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";
      |              ^~~~~~~~~~~~~~