Submission #103283

#TimeUsernameProblemLanguageResultExecution timeMemory
103283aviroop123Combo (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'}; fr(i, 1, N){ 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:6:5: error: 'i' was not declared in this scope
    6 |  fr(i, 1, N){
      |     ^
combo.cpp:6:2: error: 'fr' was not declared in this scope
    6 |  fr(i, 1, N){
      |  ^~