Submission #528642

#TimeUsernameProblemLanguageResultExecution timeMemory
528642rayfishCombo (IOI18_combo)C++17
Compilation error
0 ms0 KiB
#include <climits> #include <iostream> #include <algorithm> #include <cmath> #include <deque> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #include <string> #include <unordered_set> #include <unordered_map> #include <utility> #include <vector> using namespace std; using ll = long long; //int press(string s) { // return 0; //} string guess_sequence(int N) { string cur; char letters[] {'A', 'B', 'X', 'Y'}; for (int i = 0; i < N; i++) { int t_i = 0; for (; ; t_i++) { if (press(cur + letters[t_i]) == i+1) { break; } } cur += letters[t_i]; } return cur; } int main() { // cin.tie(0)->sync_with_stdio(0); // freopen("team.in","r",stdin); // freopen("team.out","w",stdout); }

Compilation message (stderr)

combo.cpp: In function 'std::string guess_sequence(int)':
combo.cpp:30:17: error: 'press' was not declared in this scope
   30 |             if (press(cur + letters[t_i]) == i+1) {
      |                 ^~~~~