Submission #247344

# Submission time Handle Problem Language Result Execution time Memory
247344 2020-07-11T08:52:22 Z dwsc Mouse (info1cup19_mouse) C++14
Compilation error
0 ms 0 KB
#include <bits/stdc++.h>
using namespace std;
void solve(int N){
    vector<int> v;
    for (int i = 1; i <= N; i++) v.push_back(i);
    do{
        int val = query(v);
        if (val == N) return;
    }while(next_permutation(v.begin(),v.end()));
}

Compilation message

mouse.cpp: In function 'void solve(int)':
mouse.cpp:7:19: error: 'query' was not declared in this scope
         int val = query(v);
                   ^~~~~