제출 #1290657

#제출 시각아이디문제언어결과실행 시간메모리
1290657ey00Xylophone (JOI18_xylophone)C++20
컴파일 에러
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; } } }

컴파일 시 표준 에러 (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);
      |             ^~~~~~