제출 #467466

#제출 시각아이디문제언어결과실행 시간메모리
467466boykutXoractive (IZhO19_xoractive)C++14
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h>
#include "interactive.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:10:1: error: expected '}' at end of input
   10 | }
      | ^
Xoractive.cpp:5:26: note: to match this '{'
    5 | vector<int> guess(int n) {
      |                          ^
Xoractive.cpp:10:1: warning: control reaches end of non-void function [-Wreturn-type]
   10 | }
      | ^