Submission #103284

#TimeUsernameProblemLanguageResultExecution timeMemory
103284aviroop123Combo (IOI18_combo)C++14
Compilation error
0 ms0 KiB
#include<bits/stdc++.h> using namespace std; string guess_subsequence(int N){ string s = ""; vector<char> v = {'A', 'B', 'X', 'Y'}; for(int i = 1; i <= N; i++){ for(char ch : v){ s += ch; if(press(s) == i) break; s.pop_back(); } } return s; }

Compilation message (stderr)

combo.cpp: In function 'std::string guess_subsequence(int)':
combo.cpp:9:7: error: 'press' was not declared in this scope
    9 |    if(press(s) == i)
      |       ^~~~~