제출 #467464

#제출 시각아이디문제언어결과실행 시간메모리
467464boykutXoractive (IZhO19_xoractive)C++14
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; vector<int> guess(int n) { vector<int> ans(n); for (int i = 0; i < n; i++) { ans[i] = ask(i + 1); return ans; }

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

Xoractive.cpp: In function 'std::vector<int> guess(int)':
Xoractive.cpp:7:16: error: 'ask' was not declared in this scope
    7 |       ans[i] = ask(i + 1);
      |                ^~~
Xoractive.cpp:9:1: error: expected '}' at end of input
    9 | }
      | ^
Xoractive.cpp:4:26: note: to match this '{'
    4 | vector<int> guess(int n) {
      |                          ^
Xoractive.cpp:9:1: warning: control reaches end of non-void function [-Wreturn-type]
    9 | }
      | ^