답안 #950140

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
950140 2024-03-20T05:52:44 Z pcc Mouse (info1cup19_mouse) C++17
컴파일 오류
0 ms 0 KB
#include <bits/stdc++.h>
using namespace std;

#define ll long long
#define pll pair<ll,ll>
#define pii pair<int,int>
#define fs first
#define sc second
#define tlll tuple<ll,ll,ll>


void solve(int N){
	if(N>7)return;
	vector<int> v;
	for(int i = 1;i<=N;i++)v.push_back(i);
	while(query(v) != N&&next_permutation(v.begin(),v.end()));
	return;
}

Compilation message

mouse.cpp: In function 'void solve(int)':
mouse.cpp:16:8: error: 'query' was not declared in this scope
   16 |  while(query(v) != N&&next_permutation(v.begin(),v.end()));
      |        ^~~~~