제출 #103283

#제출 시각아이디문제언어결과실행 시간메모리
103283aviroop123콤보 (IOI18_combo)C++14
컴파일 에러
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; }

컴파일 시 표준 에러 (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){
      |  ^~