제출 #1096784

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

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

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