제출 #1148842

#제출 시각아이디문제언어결과실행 시간메모리
1148842andrejikusCombo (IOI18_combo)C++20
컴파일 에러
0 ms0 KiB
#include "combo.h"
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
void DBG() { cerr << "]" << endl; }
template<class H, class... T> void DBG(H h, T... t) { cerr << to_string(h); if(sizeof...(t)) cerr << ", "; DBG(t...); }
#define dbg(...) cerr << "[" << #__VA_ARGS__ << "]: [", DBG(__VA_ARGS__)

const int N = 2e5 + 3;
char ELEM[4] = {'A', 'B', 'X', 'Y'};

string guess_sequence(int n) {

    string s = "";
    for (int i = 1; i <= n; i++) {
        for (int d = 0; d < 4; d++) {
            string p = s + ELEM[d];
            if (press(p) == i) {
                s = p; break;
            }
        }
    }

    return s;
}

signed main() {
    ios::sync_with_stdio(false); cin.tie(0);
    int t=1; //cin >> t;
    while (t--) {
        solve();
    }
}

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

combo.cpp: In function 'int main()':
combo.cpp:31:9: error: 'solve' was not declared in this scope
   31 |         solve();
      |         ^~~~~