Submission #1124877

#TimeUsernameProblemLanguageResultExecution timeMemory
1124877sinatbtfardCombo (IOI18_combo)C++20
Compilation error
0 ms0 KiB
#include "combo.h" #include <bits/stdc++.h> using namespace std; string guess_sequence (int n){ string s = ""; for (int i = 0; i < n; i++){ for (auto c : {'A', 'B', 'X', 'Y'}){ if (prees(s + c) == i + 1){ s += c; break; } } } return s; }

Compilation message (stderr)

combo.cpp: In function 'std::string guess_sequence(int)':
combo.cpp:10:29: error: 'prees' was not declared in this scope; did you mean 'press'?
   10 |                         if (prees(s + c) == i + 1){
      |                             ^~~~~
      |                             press