제출 #1151627

#제출 시각아이디문제언어결과실행 시간메모리
1151627arkanefuryMouse (info1cup19_mouse)C++20
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> #define pb push_back using namespace std; #define F first #define sz size() #define S second #define in insert #define all(v) v.begin(), v.end() #define FOR(x, n, m, d) for(int x = n; x <= m; x += d) #define FORR(x, n) for(int i = x; i >= n; i --) #define nikita ios_base::sync_with_stdio(0), cin.tie(0); const int N = 1e5+5; int n,m,k,tt,ans,sum=0,l, r, x, y, cnt, block = 448; int pref[N], b[N],a[N]; vector<int>g[N]; bool used[N]; string s[N]; void solve(int n){ nikita vector<int>v; FOR(i, 1, n, 1){ v.pb(i); } FOR(i, 1, n*10, 1){ random_shuffle(all(v)); query(v); FOR(i, 1, n, 1){ if( a[i] == v[i-1] )b[i] = a[i]; } } FOR(i, 1, n, 1)cout << b[i] << ' '; } /* signed main() { nikita tt = 1; if(!tt)cin >> tt; FOR(i, 1, tt, 1){ solve(); } } */

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

mouse.cpp: In function 'void solve(int)':
mouse.cpp:26:9: error: 'query' was not declared in this scope
   26 |         query(v);
      |         ^~~~~