Submission #1139960

#TimeUsernameProblemLanguageResultExecution timeMemory
1139960AlmontherStations (IOI20_stations)C++20
Compilation error
0 ms0 KiB
#include "stations.h" #include <bits/stdc++.h> #define ll ll #define co cout<< using namespace std; //stuff const ll maxn=1005; ll en[maxn],ou[maxn],a[maxn]; vector<ll>v1[maxn]; map<ll,ll>mp; ll tim=1; void dfs(ll x,ll last,ll dep){ en[x]=tim++; for(auto i:v1[x]){ if(i!=last) dfs(i,x,dep+1); } ou[x]=tim++; if(dep%2) mp[ou[x]],a[x]=ou[x]; else mp[en[x]],a[x]=en[x]; } vector<int>label(int n, int k, vector<int> u, vector<int> v){ for(int i=0;i<u.size();i++) v1[u[i]].push_back(v[i]); dfs(0,0,1); ll cnt=0; for(auto &i:mp) i.second=cnt,cnt++; vector<int>labels; for(int i=0;i<n;i++) labels.push_back(mp[a[i]]); mp={}; for(int i=0;i<n;i++) ou[i]=en[i]=a[i]=0,v1[i].clear(); tim=1; return labels; } int find_next_station(int s, int t, vector<int> c) { set<ll>s1; for(auto i:c) s1.insert(i); ll parent; ll l,r; if(s<*s1.begin()){ auto it=s1.end(); it--; parent=*it; s1.erase(it); it=s1.end(); it--; l=s; r=*it; co "wow\n"; if(!(l<=t&&t<=r)) return parent; // even i'm the ending time // they have the starting vector<ll>v; for(auto i:s1) v.push_back(i); for(int i=0;i<v.size()-1;i++){ if(v[i]<=t&&t<=v[i+1]) return v[i]; } return v.back(); } else{ parent=*s1.begin(); s1.erase(s1.begin()); l=*s1.begin(); r=s; if(!(l<=t&&t<=r)) return parent; // odd they have the finishing i have the starting vector<ll>v; for(auto i:s1) v.push_back(i); for(int i=v.size()-1;i>0;i--){ if(v[i]>=t&&t>=v[i-1]) return v[i]; } return v[0]; } } void check(){ } // int main(){ // vector<ll>v=label(5, 10, {0, 1, 1, 2}, {1, 2, 3, 4}); // for(int i=0;i<v.size();i++) co i<<' '<<v[i]<<'\n'; // co find_next_station(2,0,{1,0}); // // 2 // ios::sync_with_stdio(0);cin.tie(0);cout.tie(0); // int _=1; // // cin>>_; // // while(_--) solve(); // return 0; // }

Compilation message (stderr)

stations.cpp:4:12: error: 'll' does not name a type
    4 | #define ll ll
      |            ^~
stations.cpp:8:7: note: in expansion of macro 'll'
    8 | const ll maxn=1005;
      |       ^~
stations.cpp:4:12: error: 'll' does not name a type
    4 | #define ll ll
      |            ^~
stations.cpp:9:1: note: in expansion of macro 'll'
    9 | ll en[maxn],ou[maxn],a[maxn];
      | ^~
stations.cpp:4:12: error: 'll' was not declared in this scope
    4 | #define ll ll
      |            ^~
stations.cpp:10:8: note: in expansion of macro 'll'
   10 | vector<ll>v1[maxn];
      |        ^~
stations.cpp:10:10: error: template argument 1 is invalid
   10 | vector<ll>v1[maxn];
      |          ^
stations.cpp:10:10: error: template argument 2 is invalid
stations.cpp:10:14: error: 'maxn' was not declared in this scope
   10 | vector<ll>v1[maxn];
      |              ^~~~
stations.cpp:4:12: error: 'll' was not declared in this scope
    4 | #define ll ll
      |            ^~
stations.cpp:11:5: note: in expansion of macro 'll'
   11 | map<ll,ll>mp;
      |     ^~
stations.cpp:4:12: error: 'll' was not declared in this scope
    4 | #define ll ll
      |            ^~
stations.cpp:11:8: note: in expansion of macro 'll'
   11 | map<ll,ll>mp;
      |        ^~
stations.cpp:11:10: error: template argument 1 is invalid
   11 | map<ll,ll>mp;
      |          ^
stations.cpp:11:10: error: template argument 2 is invalid
stations.cpp:11:10: error: template argument 3 is invalid
stations.cpp:11:10: error: template argument 4 is invalid
stations.cpp:4:12: error: 'll' does not name a type
    4 | #define ll ll
      |            ^~
stations.cpp:12:1: note: in expansion of macro 'll'
   12 | ll tim=1;
      | ^~
stations.cpp:13:6: error: variable or field 'dfs' declared void
   13 | void dfs(ll x,ll last,ll dep){
      |      ^~~
stations.cpp:4:12: error: 'll' was not declared in this scope
    4 | #define ll ll
      |            ^~
stations.cpp:13:10: note: in expansion of macro 'll'
   13 | void dfs(ll x,ll last,ll dep){
      |          ^~
stations.cpp:4:12: error: 'll' was not declared in this scope
    4 | #define ll ll
      |            ^~
stations.cpp:13:15: note: in expansion of macro 'll'
   13 | void dfs(ll x,ll last,ll dep){
      |               ^~
stations.cpp:4:12: error: 'll' was not declared in this scope
    4 | #define ll ll
      |            ^~
stations.cpp:13:23: note: in expansion of macro 'll'
   13 | void dfs(ll x,ll last,ll dep){
      |                       ^~
stations.cpp: In function 'std::vector<int> label(int, int, std::vector<int>, std::vector<int>)':
stations.cpp:23:33: error: 'v1' was not declared in this scope; did you mean '__pstl::execution::v1'?
   23 |     for(int i=0;i<u.size();i++) v1[u[i]].push_back(v[i]);
      |                                 ^~
      |                                 __pstl::execution::v1
In file included from /usr/include/c++/11/pstl/glue_algorithm_defs.h:15,
                 from /usr/include/c++/11/algorithm:74,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
                 from stations.cpp:2:
/usr/include/c++/11/pstl/execution_defs.h:19:18: note: '__pstl::execution::v1' declared here
   19 | inline namespace v1
      |                  ^~
stations.cpp:24:5: error: 'dfs' was not declared in this scope; did you mean 'ffs'?
   24 |     dfs(0,0,1);
      |     ^~~
      |     ffs
stations.cpp:4:12: error: 'll' was not declared in this scope
    4 | #define ll ll
      |            ^~
stations.cpp:25:5: note: in expansion of macro 'll'
   25 |     ll cnt=0;
      |     ^~
stations.cpp:26:17: error: 'begin' was not declared in this scope
   26 |     for(auto &i:mp) i.second=cnt,cnt++;
      |                 ^~
stations.cpp:26:17: note: suggested alternatives:
In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:95,
                 from stations.cpp:2:
/usr/include/c++/11/valarray:1228:5: note:   'std::begin'
 1228 |     begin(const valarray<_Tp>& __va) noexcept
      |     ^~~~~
In file included from /usr/include/c++/11/string_view:48,
                 from /usr/include/c++/11/bits/basic_string.h:48,
                 from /usr/include/c++/11/string:55,
                 from /usr/include/c++/11/bits/locale_classes.h:40,
                 from /usr/include/c++/11/bits/ios_base.h:41,
                 from /usr/include/c++/11/ios:42,
                 from /usr/include/c++/11/istream:38,
                 from /usr/include/c++/11/sstream:38,
                 from /usr/include/c++/11/complex:45,
                 from /usr/include/c++/11/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
                 from stations.cpp:2:
/usr/include/c++/11/bits/ranges_base.h:561:44: note:   'std::ranges::__cust::begin'
  561 |     inline constexpr __cust_access::_Begin begin{};
      |                                            ^~~~~
In file included from /usr/include/c++/11/filesystem:46,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:129,
                 from stations.cpp:2:
/usr/include/c++/11/bits/fs_dir.h:549:3: note:   'std::filesystem::__cxx11::begin'
  549 |   begin(recursive_directory_iterator __iter) noexcept
      |   ^~~~~
In file included from /usr/include/c++/11/bits/stl_iterator_base_types.h:71,
                 from /usr/include/c++/11/bits/stl_algobase.h:65,
                 from /usr/include/c++/11/vector:60,
                 from stations.h:1,
                 from stations.cpp:1:
/usr/include/c++/11/bits/iterator_concepts.h:949:10: note:   'std::ranges::__cust_access::begin'
  949 |     void begin(const auto&) = delete;
      |          ^~~~~
stations.cpp:26:17: error: 'end' was not declared in this scope
   26 |     for(auto &i:mp) i.second=cnt,cnt++;
      |                 ^~
stations.cpp:26:17: note: suggested alternatives:
In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:95,
                 from stations.cpp:2:
/usr/include/c++/11/valarray:1255:5: note:   'std::end'
 1255 |     end(const valarray<_Tp>& __va) noexcept
      |     ^~~
In file included from /usr/include/c++/11/string_view:48,
                 from /usr/include/c++/11/bits/basic_string.h:48,
                 from /usr/include/c++/11/string:55,
                 from /usr/include/c++/11/bits/locale_classes.h:40,
                 from /usr/include/c++/11/bits/ios_base.h:41,
                 from /usr/include/c++/11/ios:42,
                 from /usr/include/c++/11/istream:38,
                 from /usr/include/c++/11/sstream:38,
                 from /usr/include/c++/11/complex:45,
                 from /usr/include/c++/11/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
                 from stations.cpp:2:
/usr/include/c++/11/bits/ranges_base.h:562:42: note:   'std::ranges::__cust::end'
  562 |     inline constexpr __cust_access::_End end{};
      |                                          ^~~
In file included from /usr/include/c++/11/filesystem:46,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:129,
                 from stations.cpp:2:
/usr/include/c++/11/bits/fs_dir.h:554:3: note:   'std::filesystem::__cxx11::end'
  554 |   end(recursive_directory_iterator) noexcept
      |   ^~~
In file included from /usr/include/c++/11/string_view:48,
                 from /usr/include/c++/11/bits/basic_string.h:48,
                 from /usr/include/c++/11/string:55,
                 from /usr/include/c++/11/bits/locale_classes.h:40,
                 from /usr/include/c++/11/bits/ios_base.h:41,
                 from /usr/include/c++/11/ios:42,
                 from /usr/include/c++/11/istream:38,
                 from /usr/include/c++/11/sstream:38,
                 from /usr/include/c++/11/complex:45,
                 from /usr/include/c++/11/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
                 from stations.cpp:2:
/usr/include/c++/11/bits/ranges_base.h:136:10: note:   'std::ranges::__cust_access::end'
  136 |     void end(const auto&) = delete;
      |          ^~~
stations.cpp:26:30: error: 'cnt' was not declared in this scope; did you mean 'int'?
   26 |     for(auto &i:mp) i.second=cnt,cnt++;
      |                              ^~~
      |                              int
stations.cpp:28:46: error: 'a' was not declared in this scope
   28 |     for(int i=0;i<n;i++) labels.push_back(mp[a[i]]);
      |                                              ^
stations.cpp:30:26: error: 'ou' was not declared in this scope; did you mean 'u'?
   30 |     for(int i=0;i<n;i++) ou[i]=en[i]=a[i]=0,v1[i].clear();
      |                          ^~
      |                          u
stations.cpp:30:32: error: 'en' was not declared in this scope; did you mean 'n'?
   30 |     for(int i=0;i<n;i++) ou[i]=en[i]=a[i]=0,v1[i].clear();
      |                                ^~
      |                                n
stations.cpp:30:38: error: 'a' was not declared in this scope
   30 |     for(int i=0;i<n;i++) ou[i]=en[i]=a[i]=0,v1[i].clear();
      |                                      ^
stations.cpp:30:45: error: 'v1' was not declared in this scope; did you mean '__pstl::execution::v1'?
   30 |     for(int i=0;i<n;i++) ou[i]=en[i]=a[i]=0,v1[i].clear();
      |                                             ^~
      |                                             __pstl::execution::v1
In file included from /usr/include/c++/11/pstl/glue_algorithm_defs.h:15,
                 from /usr/include/c++/11/algorithm:74,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
                 from stations.cpp:2:
/usr/include/c++/11/pstl/execution_defs.h:19:18: note: '__pstl::execution::v1' declared here
   19 | inline namespace v1
      |                  ^~
stations.cpp:31:5: error: 'tim' was not declared in this scope; did you mean 'tm'?
   31 |     tim=1;
      |     ^~~
      |     tm
stations.cpp: In function 'int find_next_station(int, int, std::vector<int>)':
stations.cpp:4:12: error: 'll' was not declared in this scope
    4 | #define ll ll
      |            ^~
stations.cpp:35:9: note: in expansion of macro 'll'
   35 |     set<ll>s1;
      |         ^~
stations.cpp:35:11: error: template argument 1 is invalid
   35 |     set<ll>s1;
      |           ^
stations.cpp:35:11: error: template argument 2 is invalid
stations.cpp:35:11: error: template argument 3 is invalid
stations.cpp:36:22: error: request for member 'insert' in 's1', which is of non-class type 'int'
   36 |     for(auto i:c) s1.insert(i);
      |                      ^~~~~~
stations.cpp:37:8: error: expected ';' before 'parent'
   37 |     ll parent;
      |        ^~~~~~
stations.cpp:38:8: error: expected ';' before 'l'
   38 |     ll l,r;
      |        ^
stations.cpp:39:14: error: request for member 'begin' in 's1', which is of non-class type 'int'
   39 |     if(s<*s1.begin()){
      |              ^~~~~
stations.cpp:40:20: error: request for member 'end' in 's1', which is of non-class type 'int'
   40 |         auto it=s1.end();
      |                    ^~~
stations.cpp:42:9: error: 'parent' was not declared in this scope
   42 |         parent=*it;
      |         ^~~~~~
stations.cpp:43:12: error: request for member 'erase' in 's1', which is of non-class type 'int'
   43 |         s1.erase(it);
      |            ^~~~~
stations.cpp:44:15: error: request for member 'end' in 's1', which is of non-class type 'int'
   44 |         it=s1.end();
      |               ^~~
stations.cpp:46:9: error: 'l' was not declared in this scope
   46 |         l=s;
      |         ^
stations.cpp:47:9: error: 'r' was not declared in this scope
   47 |         r=*it;
      |         ^
stations.cpp:52:18: error: template argument 2 is invalid
   52 |         vector<ll>v;
      |                  ^
stations.cpp:53:20: error: 'begin' was not declared in this scope
   53 |         for(auto i:s1) v.push_back(i);
      |                    ^~
stations.cpp:53:20: note: suggested alternatives:
In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:95,
                 from stations.cpp:2:
/usr/include/c++/11/valarray:1228:5: note:   'std::begin'
 1228 |     begin(const valarray<_Tp>& __va) noexcept
      |     ^~~~~
In file included from /usr/include/c++/11/string_view:48,
                 from /usr/include/c++/11/bits/basic_string.h:48,
                 from /usr/include/c++/11/string:55,
                 from /usr/include/c++/11/bits/locale_classes.h:40,
                 from /usr/include/c++/11/bits/ios_base.h:41,
                 from /usr/include/c++/11/ios:42,
                 from /usr/include/c++/11/istream:38,
                 from /usr/include/c++/11/sstream:38,
                 from /usr/include/c++/11/complex:45,
                 from /usr/include/c++/11/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
                 from stations.cpp:2:
/usr/include/c++/11/bits/ranges_base.h:561:44: note:   'std::ranges::__cust::begin'
  561 |     inline constexpr __cust_access::_Begin begin{};
      |                                            ^~~~~
In file included from /usr/include/c++/11/filesystem:46,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:129,
                 from stations.cpp:2:
/usr/include/c++/11/bits/fs_dir.h:549:3: note:   'std::filesystem::__cxx11::begin'
  549 |   begin(recursive_directory_iterator __iter) noexcept
      |   ^~~~~
In file included from /usr/include/c++/11/bits/stl_iterator_base_types.h:71,
                 from /usr/include/c++/11/bits/stl_algobase.h:65,
                 from /usr/include/c++/11/vector:60,
                 from stations.h:1,
                 from stations.cpp:1:
/usr/include/c++/11/bits/iterator_concepts.h:949:10: note:   'std::ranges::__cust_access::begin'
  949 |     void begin(const auto&) = delete;
      |          ^~~~~
stations.cpp:53:20: error: 'end' was not declared in this scope
   53 |         for(auto i:s1) v.push_back(i);
      |                    ^~
stations.cpp:53:20: note: suggested alternatives:
In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:95,
                 from stations.cpp:2:
/usr/include/c++/11/valarray:1255:5: note:   'std::end'
 1255 |     end(const valarray<_Tp>& __va) noexcept
      |     ^~~
In file included from /usr/include/c++/11/string_view:48,
                 from /usr/include/c++/11/bits/basic_string.h:48,
                 from /usr/include/c++/11/string:55,
                 from /usr/include/c++/11/bits/locale_classes.h:40,
                 from /usr/include/c++/11/bits/ios_base.h:41,
                 from /usr/include/c++/11/ios:42,
                 from /usr/include/c++/11/istream:38,
                 from /usr/include/c++/11/sstream:38,
                 from /usr/include/c++/11/complex:45,
                 from /usr/include/c++/11/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
                 from stations.cpp:2:
/usr/include/c++/11/bits/ranges_base.h:562:42: note:   'std::ranges::__cust::end'
  562 |     inline constexpr __cust_access::_End end{};
      |                                          ^~~
In file included from /usr/include/c++/11/filesystem:46,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:129,
                 from stations.cpp:2:
/usr/include/c++/11/bits/fs_dir.h:554:3: note:   'std::filesystem::__cxx11::end'
  554 |   end(recursive_directory_iterator) noexcept
      |   ^~~
In file included from /usr/include/c++/11/string_view:48,
                 from /usr/include/c++/11/bits/basic_string.h:48,
                 from /usr/include/c++/11/string:55,
                 from /usr/include/c++/11/bits/locale_classes.h:40,
                 from /usr/include/c++/11/bits/ios_base.h:41,
                 from /usr/include/c++/11/ios:42,
                 from /usr/include/c++/11/istream:38,
                 from /usr/include/c++/11/sstream:38,
                 from /usr/include/c++/11/complex:45,
                 from /usr/include/c++/11/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
                 from stations.cpp:2:
/usr/include/c++/11/bits/ranges_base.h:136:10: note:   'std::ranges::__cust_access::end'
  136 |     void end(const auto&) = delete;
      |          ^~~
stations.cpp:53:26: error: request for member 'push_back' in 'v', which is of non-class type 'int'
   53 |         for(auto i:s1) v.push_back(i);
      |                          ^~~~~~~~~
stations.cpp:54:25: error: request for member 'size' in 'v', which is of non-class type 'int'
   54 |         for(int i=0;i<v.size()-1;i++){
      |                         ^~~~
stations.cpp:55:17: error: invalid types 'int[int]' for array subscript
   55 |             if(v[i]<=t&&t<=v[i+1]) return v[i];
      |                 ^
stations.cpp:55:29: error: invalid types 'int[int]' for array subscript
   55 |             if(v[i]<=t&&t<=v[i+1]) return v[i];
      |                             ^
stations.cpp:55:44: error: invalid types 'int[int]' for array subscript
   55 |             if(v[i]<=t&&t<=v[i+1]) return v[i];
      |                                            ^
stations.cpp:57:18: error: request for member 'back' in 'v', which is of non-class type 'int'
   57 |         return v.back();
      |                  ^~~~
stations.cpp:60:9: error: 'parent' was not declared in this scope
   60 |         parent=*s1.begin();
      |         ^~~~~~
stations.cpp:60:20: error: request for member 'begin' in 's1', which is of non-class type 'int'
   60 |         parent=*s1.begin();
      |                    ^~~~~
stations.cpp:61:12: error: request for member 'erase' in 's1', which is of non-class type 'int'
   61 |         s1.erase(s1.begin());
      |            ^~~~~
stations.cpp:61:21: error: request for member 'begin' in 's1', which is of non-class type 'int'
   61 |         s1.erase(s1.begin());
      |                     ^~~~~
stations.cpp:62:9: error: 'l' was not declared in this scope
   62 |         l=*s1.begin();
      |         ^
stations.cpp:62:15: error: request for member 'begin' in 's1', which is of non-class type 'int'
   62 |         l=*s1.begin();
      |               ^~~~~
stations.cpp:63:9: error: 'r' was not declared in this scope
   63 |         r=s;
      |         ^
stations.cpp:66:18: error: template argument 2 is invalid
   66 |         vector<ll>v;
      |                  ^
stations.cpp:67:20: error: 'begin' was not declared in this scope
   67 |         for(auto i:s1) v.push_back(i);
      |                    ^~
stations.cpp:67:20: note: suggested alternatives:
In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:95,
                 from stations.cpp:2:
/usr/include/c++/11/valarray:1228:5: note:   'std::begin'
 1228 |     begin(const valarray<_Tp>& __va) noexcept
      |     ^~~~~
In file included from /usr/include/c++/11/string_view:48,
                 from /usr/include/c++/11/bits/basic_string.h:48,
                 from /usr/include/c++/11/string:55,
                 from /usr/include/c++/11/bits/locale_classes.h:40,
                 from /usr/include/c++/11/bits/ios_base.h:41,
                 from /usr/include/c++/11/ios:42,
                 from /usr/include/c++/11/istream:38,
                 from /usr/include/c++/11/sstream:38,
                 from /usr/include/c++/11/complex:45,
                 from /usr/include/c++/11/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
                 from stations.cpp:2:
/usr/include/c++/11/bits/ranges_base.h:561:44: note:   'std::ranges::__cust::begin'
  561 |     inline constexpr __cust_access::_Begin begin{};
      |                                            ^~~~~
In file included from /usr/include/c++/11/filesystem:46,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:129,
                 from stations.cpp:2:
/usr/include/c++/11/bits/fs_dir.h:549:3: note:   'std::filesystem::__cxx11::begin'
  549 |   begin(recursive_directory_iterator __iter) noexcept
      |   ^~~~~
In file included from /usr/include/c++/11/bits/stl_iterator_base_types.h:71,
                 from /usr/include/c++/11/bits/stl_algobase.h:65,
                 from /usr/include/c++/11/vector:60,
                 from stations.h:1,
                 from stations.cpp:1:
/usr/include/c++/11/bits/iterator_concepts.h:949:10: note:   'std::ranges::__cust_access::begin'
  949 |     void begin(const auto&) = delete;
      |          ^~~~~
stations.cpp:67:20: error: 'end' was not declared in this scope
   67 |         for(auto i:s1) v.push_back(i);
      |                    ^~
stations.cpp:67:20: note: suggested alternatives:
In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:95,
                 from stations.cpp:2:
/usr/include/c++/11/valarray:1255:5: note:   'std::end'
 1255 |     end(const valarray<_Tp>& __va) noexcept
      |     ^~~
In file included from /usr/include/c++/11/string_view:48,
                 from /usr/include/c++/11/bits/basic_string.h:48,
                 from /usr/include/c++/11/string:55,
                 from /usr/include/c++/11/bits/locale_classes.h:40,
                 from /usr/include/c++/11/bits/ios_base.h:41,
                 from /usr/include/c++/11/ios:42,
                 from /usr/include/c++/11/istream:38,
                 from /usr/include/c++/11/sstream:38,
                 from /usr/include/c++/11/complex:45,
                 from /usr/include/c++/11/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
                 from stations.cpp:2:
/usr/include/c++/11/bits/ranges_base.h:562:42: note:   'std::ranges::__cust::end'
  562 |     inline constexpr __cust_access::_End end{};
      |                                          ^~~
In file included from /usr/include/c++/11/filesystem:46,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:129,
                 from stations.cpp:2:
/usr/include/c++/11/bits/fs_dir.h:554:3: note:   'std::filesystem::__cxx11::end'
  554 |   end(recursive_directory_iterator) noexcept
      |   ^~~
In file included from /usr/include/c++/11/string_view:48,
                 from /usr/include/c++/11/bits/basic_string.h:48,
                 from /usr/include/c++/11/string:55,
                 from /usr/include/c++/11/bits/locale_classes.h:40,
                 from /usr/include/c++/11/bits/ios_base.h:41,
                 from /usr/include/c++/11/ios:42,
                 from /usr/include/c++/11/istream:38,
                 from /usr/include/c++/11/sstream:38,
                 from /usr/include/c++/11/complex:45,
                 from /usr/include/c++/11/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
                 from stations.cpp:2:
/usr/include/c++/11/bits/ranges_base.h:136:10: note:   'std::ranges::__cust_access::end'
  136 |     void end(const auto&) = delete;
      |          ^~~
stations.cpp:67:26: error: request for member 'push_back' in 'v', which is of non-class type 'int'
   67 |         for(auto i:s1) v.push_back(i);
      |                          ^~~~~~~~~
stations.cpp:68:21: error: request for member 'size' in 'v', which is of non-class type 'int'
   68 |         for(int i=v.size()-1;i>0;i--){
      |                     ^~~~
stations.cpp:69:17: error: invalid types 'int[int]' for array subscript
   69 |             if(v[i]>=t&&t>=v[i-1]) return v[i];
      |                 ^
stations.cpp:69:29: error: invalid types 'int[int]' for array subscript
   69 |             if(v[i]>=t&&t>=v[i-1]) return v[i];
      |                             ^
stations.cpp:69:44: error: invalid types 'int[int]' for array subscript
   69 |             if(v[i]>=t&&t>=v[i-1]) return v[i];
      |                                            ^
stations.cpp:71:17: error: invalid types 'int[int]' for array subscript
   71 |         return v[0];
      |                 ^