#include "railroad.h"
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef pair<ll,ll> pii;
typedef vector<pii> vii;
typedef vector<vii> vvii;
typedef vector<bool> vb;
ll potencia(ll a, ll n){
if (n==0) return 1;
ll sol=potencia(a,n/2);
sol*=sol;
if (n%2) sol*=a;
return sol;
}
ll vb_to_int(vb x){
ll pot=1;
ll sol=0;
for (int i=0;i<16;i++){
}
}
const ll INF=1000000000000000000;
ll plan_roller_coaster(vi in, vi out) {
if (true){ //subtask 3
int n=in.size();
multiset<pii> pares;
for (int i=0;i<n;i++) pares.insert(pii{in[i],out[i]});
int ac=1;
for (int i=0;i<n;i++){
//cerr << ac << ' ';
auto x=pares.upper_bound(pii{ac,0});
if (x==pares.end()) return 0;
ac=(*x).second;
pares.erase(x);
}
return 1;
}
return 2;
}
Compilation message
shortcut.cpp:1:10: fatal error: railroad.h: No such file or directory
1 | #include "railroad.h"
| ^~~~~~~~~~~~
compilation terminated.