제출 #104349

#제출 시각아이디문제언어결과실행 시간메모리
104349tmkpopa (BOI18_popa)C++17
컴파일 에러
0 ms0 KiB
#include<bits/stdc++.h> #include"pop.h" using namespace std; #ifndef d #define d(...) #endif #define st first #define nd second #define pb push_back #define siz(c) (int)(c).size() #define all(c) (c).begin(), (c).end() typedef long long LL; typedef long double LD; constexpr int INF=1e9+7; constexpr LL INFL=1e18; template<class L, class R> ostream &operator<<(ostream &os, pair<L,R> P) { return os << "(" << P.st << "," << P.nd << ")"; } int solve(int n, int *L, int *R) { fill_n(L, n, -1); fill_n(R, n, -1); int top = 0, cur = 0, lst = 0; while(cur < n-1) { if(query(cur, cur, cur, cur+1)) { if(lst != cur) R[lst] = cur; lst = cur++; } else if(query(top, cur+1, cur+1, cur+1)) { if(lst != cur) R[lst] = cur; L[cur+1] = top; top = lst = ++cur; } else { L[cur+1] = cur; cur++; } } if(lst != cur) R[lst] = cur; return top; }

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

popa.cpp:2:9: fatal error: pop.h: No such file or directory
 #include"pop.h"
         ^~~~~~~
compilation terminated.