제출 #1176399

#제출 시각아이디문제언어결과실행 시간메모리
1176399SulAXoractive (IZhO19_xoractive)C++20
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;

const int MOD = 998244353;

vector<int> guess(int n) {
    vector<int> a(n);
    for (int i = 0; i < n; i++)
        a[i] = ask(i);
    return a;
}

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

Xoractive.cpp: In function 'std::vector<int> guess(int)':
Xoractive.cpp:12:16: error: 'ask' was not declared in this scope
   12 |         a[i] = ask(i);
      |                ^~~