제출 #1124877

#제출 시각아이디문제언어결과실행 시간메모리
1124877sinatbtfardCombo (IOI18_combo)C++20
컴파일 에러
0 ms0 KiB
#include "combo.h"
#include <bits/stdc++.h>

using namespace std;

string guess_sequence (int n){
	string s = "";
	for (int i = 0; i < n; i++){
		for (auto c : {'A', 'B', 'X', 'Y'}){
			if (prees(s + c) == i + 1){
				s += c;
				break;
			}
		}
	}
	return s;
}

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

combo.cpp: In function 'std::string guess_sequence(int)':
combo.cpp:10:29: error: 'prees' was not declared in this scope; did you mean 'press'?
   10 |                         if (prees(s + c) == i + 1){
      |                             ^~~~~
      |                             press