Submission #254515

#TimeUsernameProblemLanguageResultExecution timeMemory
254515ErkhemkhuuCombo (IOI18_combo)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; #define ll long long #define pb push_back #define mk make_pair #define F first #define S second string guess_sequence(int n) { string res = ""; vector <char> vc = {'A', 'B', 'X', 'Y'}; for(auto &i: vc) for(auto &j: vc) for(auto &k: vc) if(press(i + j + k) == 3) res = i + j + k; return res; }

Compilation message (stderr)

combo.cpp: In function 'std::string guess_sequence(int)':
combo.cpp:14:20: error: 'press' was not declared in this scope; did you mean 'res'?
   14 |                 if(press(i + j + k) == 3)
      |                    ^~~~~
      |                    res