제출 #1285994

#제출 시각아이디문제언어결과실행 시간메모리
1285994aritro_곤돌라 (IOI14_gondola)C++20
컴파일 에러
0 ms0 KiB
#include<bits/stdc++.h> #include "gindola.h" using namespace std; #include<ext/pb_ds/assoc_container.hpp> #include<ext/pb_ds/tree_policy.hpp> using namespace __gnu_pbds; template <typename T> using ordset = tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>; /* less<T> can be changed to: 1. less_equal<T> 2. greater<T> ordered_set functions: 1. *(os.find_by_order(x)) -> return the value at position x (0 base) 2. os.order_of_key(x) -> return the number of elements less than x */ typedef long long ll; //#define int ll #define endl '\n' #define pb push_back #define ff first #define ss second #define all(a) a.begin(),a.end() const int MOD=1000000007; #define gcd(a,b) __gcd(a,b) #define lcm(a,b) (a*(b/gcd(a,b))) #define fios(); ios_base::sync_with_stdio(0);cin.tie(0); #define fraction(x); cout.unsetf(ios::floatfield); cout.precision(x); cout.setf(ios::fixed,ios::floatfield); #define file(); freopen("input.txt","r",stdin);freopen("output.txt","w",stdout); int valid(int n,int arr[]){ //subtask 1 int new_len=n*2; int a[new_len]; for(int i=0;i<n;i++) a[i]=arr[i]; for(int i=n;i<new_len;i++){ int ind=i-n; a[i]=arr[ind]; } int cur=1; bool b=0; for(int i=0;i<new_len;i++){ if(cur==n+1) break; if(a[i]==1&&b==0){ b=1; cur++; } else if(a[i]==cur) cur++; else if(a[i]!=cur&&b==1) return 0; if(cur==n+1) break; } return 1; } int replacement(int n,int gondolaSeq[],int replacementSeq[]); int countReplacement(int n,int inputSeq[]);

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

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