Submission #123500

#TimeUsernameProblemLanguageResultExecution timeMemory
123500baqargamRoller Coaster Railroad (IOI16_railroad)C++14
Compilation error
0 ms0 KiB
#include "bits/stdc++.h" #include "railroad.h" using namespace std; long long j,l,dp[16][1000000],g[100],res=1000000000000000000; vector<pair<int,int> >v; long long plan_roller_coaster(vector<int> s, vector<int> t) { int n = (int) s.size(); for(int i=0;i<n;i++){ v.push_back({t[i],s[i]}); } sort(v.being(),v.end()); for(int i=0;i<n-1;i++){ if(v[i].first>v[i+1].second)return 0; } return 1; }

Compilation message (stderr)

railroad.cpp: In function 'long long int plan_roller_coaster(std::vector<int>, std::vector<int>)':
railroad.cpp:14:12: error: 'class std::vector<std::pair<int, int> >' has no member named 'being'; did you mean 'begin'?
     sort(v.being(),v.end());
            ^~~~~
            begin