Submission #1290657

#TimeUsernameProblemLanguageResultExecution timeMemory
1290657ey00Xylophone (JOI18_xylophone)C++20
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; void solve(int N) { vector<bool> used(N+1,false); for(int i=1;i<=N;i++){ for(int val=1; val<=N; val++){ if(used[val]) continue; int diff = query(i,i); used[val] = true; answer(i,val); break; } } }

Compilation message (stderr)

xylophone.cpp: In function 'void solve(int)':
xylophone.cpp:8:24: error: 'query' was not declared in this scope
    8 |             int diff = query(i,i);
      |                        ^~~~~
xylophone.cpp:10:13: error: 'answer' was not declared in this scope
   10 |             answer(i,val);
      |             ^~~~~~