제출 #103285

#제출 시각아이디문제언어결과실행 시간메모리
103285aviroop123Combo (IOI18_combo)C++14
컴파일 에러
0 ms0 KiB
#include<bits/stdc++.h>
using namespace std;
string guess_sequence(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;
}

컴파일 시 표준 에러 (stderr) 메시지

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