제출 #702787

#제출 시각아이디문제언어결과실행 시간메모리
702787salmonXylophone (JOI18_xylophone)C++14
컴파일 에러
0 ms0 KiB
#include <bits/stdc++> using namespace std; int lst[5100]; int q[5100]; void solve(int N){ vector<int> v; int s, e, s1,e1; int en = 1; for(int i = N - 1; i >= 1; i--){ if(query(1,i) != N - 1){ en = 1 + 1; } } lst[en] = N; q[en] = 0; for(int i = en - 1; i > 0; i--){ int v = query(i,i + 1); q[i] = query(i,en); if(q[i + 1] == q[i]){ lst[i] = lst[i + 1] - v; } else{ lst[i] = lst[i + 1] + v; } } for(int i = en + 1; i <= N; i++){ int v = query(i - 1,i); q[i] = query(en,i); if(q[i - 1] == q[i]){ lst[i] = lst[i - 1] - v; } else{ lst[i] = lst[i - 1] + v; } } for(int i = 1; i <= N; i++){ answer(i,lst[i]); } }

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

xylophone.cpp:1:10: fatal error: bits/stdc++: No such file or directory
    1 | #include <bits/stdc++>
      |          ^~~~~~~~~~~~~
compilation terminated.