제출 #1005914

#제출 시각아이디문제언어결과실행 시간메모리
1005914irmuun모임들 (IOI18_meetings)C++17
컴파일 에러
0 ms0 KiB
#include<bits/stdc++.h> #include "meeting.h" using namespace std; #define ll long long #define pb push_back #define ff first #define ss second #define all(s) s.begin(),s.end() #define rall(s) s.rbegin(),s.rend() vector<ll>minimum_costs(vector<int>H,vector<int>L,vector<int>R){ int n=H.size(),m=L.size(); vector<ll>ans(m,1e18); ll l[n][n],r[n][n]; for(int i=0;i<n;i++){ int cur=0; ll total=0; for(int j=i;j<n;j++){ cur=max(cur,H[j]); total+=cur; l[i][j]=total; } } for(int i=n-1;i>=0;i--){ int cur=0; ll total=0; for(int j=i;j>=0;j--){ cur=max(cur,H[j]); total+=cur; r[j][i]=total; } } for(int j=0;j<m;j++){ for(int x=L[j];x<=R[j];x++){ ans[j]=min(ans[j],r[L[j]][x]+l[x][R[j]]-H[x]); } } return ans; }

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

meetings.cpp:2:10: fatal error: meeting.h: No such file or directory
    2 | #include "meeting.h"
      |          ^~~~~~~~~~~
compilation terminated.