제출 #1080545

#제출 시각아이디문제언어결과실행 시간메모리
1080545alexander707070도로 폐쇄 (APIO21_roads)C++14
컴파일 에러
0 ms0 KiB
#include<bits/stdc++.h> #define MAXN 100007 #include "hexagon.h" using namespace std; const long long mod=1e9+7; int n; long long ff(long long x){ long long a=x-1,b=x,c=x+1; if(a%3==0)a/=3; if(b%3==0)b/=3; if(c%3==0)c/=3; return (((a*b)%mod)*c)%mod; } long long ak,bk,d[MAXN],len[MAXN]; int draw_territory(int N,int A,int B,vector<int> D,vector<int> L){ n=N; ak=A; bk=B; for(int i=1;i<=n;i++){ d[i]=D[i-1]; len[i]=L[i-1]; } if(n==3){ return ((ak*(((len[1]+1)*(len[1]+2)/2)%mod) )%mod + (bk*ff(len[1]+1))%mod)%mod ; } } /*int main(){ cout<<draw_territory(3,2,4,{0,0,0},{3,3,3})<<"\n"; }*/

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

roads.cpp:3:10: fatal error: hexagon.h: No such file or directory
    3 | #include "hexagon.h"
      |          ^~~~~~~~~~~
compilation terminated.