split.cpp: In function 'std::vector<int> find_split(int, int, int, int, std::vector<int>, std::vector<int>)':
split.cpp:5:12: error: request for member 'first' in 'p.std::vector<int>::operator[](((std::vector<int>::size_type)i))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
5 | #define ff first
| ^~~~~
split.cpp:50:23: note: in expansion of macro 'ff'
50 | if(D[p[i].ff]<D[p[i].ss]) swap(p[i].ff,p[i].ss);
| ^~
split.cpp:6:12: error: request for member 'second' in 'p.std::vector<int>::operator[](((std::vector<int>::size_type)i))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
6 | #define ss second
| ^~~~~~
split.cpp:50:34: note: in expansion of macro 'ss'
50 | if(D[p[i].ff]<D[p[i].ss]) swap(p[i].ff,p[i].ss);
| ^~
split.cpp:5:12: error: request for member 'first' in 'p.std::vector<int>::operator[](((std::vector<int>::size_type)i))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
5 | #define ff first
| ^~~~~
split.cpp:50:51: note: in expansion of macro 'ff'
50 | if(D[p[i].ff]<D[p[i].ss]) swap(p[i].ff,p[i].ss);
| ^~
split.cpp:6:12: error: request for member 'second' in 'p.std::vector<int>::operator[](((std::vector<int>::size_type)i))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
6 | #define ss second
| ^~~~~~
split.cpp:50:59: note: in expansion of macro 'ss'
50 | if(D[p[i].ff]<D[p[i].ss]) swap(p[i].ff,p[i].ss);
| ^~
split.cpp:5:12: error: request for member 'first' in 'p.std::vector<int>::operator[](((std::vector<int>::size_type)i))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
5 | #define ff first
| ^~~~~
split.cpp:51:23: note: in expansion of macro 'ff'
51 | if(C[p[i].ff]>=a and n-C[p[i].ff]>=b){
| ^~
split.cpp:51:34: error: 'n' was not declared in this scope
51 | if(C[p[i].ff]>=a and n-C[p[i].ff]>=b){
| ^
split.cpp:5:12: error: request for member 'first' in 'p.std::vector<int>::operator[](((std::vector<int>::size_type)i))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
5 | #define ff first
| ^~~~~
split.cpp:51:43: note: in expansion of macro 'ff'
51 | if(C[p[i].ff]>=a and n-C[p[i].ff]>=b){
| ^~
split.cpp:6:12: error: request for member 'second' in 'p.std::vector<int>::operator[](((std::vector<int>::size_type)i))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
6 | #define ss second
| ^~~~~~
split.cpp:52:27: note: in expansion of macro 'ss'
52 | viss[p[i].ss]=1;
| ^~
split.cpp:5:12: error: request for member 'first' in 'p.std::vector<int>::operator[](((std::vector<int>::size_type)i))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
5 | #define ff first
| ^~~~~
split.cpp:53:27: note: in expansion of macro 'ff'
53 | dfs1(p[i].ff);
| ^~
split.cpp:6:12: error: request for member 'second' in 'p.std::vector<int>::operator[](((std::vector<int>::size_type)i))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
6 | #define ss second
| ^~~~~~
split.cpp:54:27: note: in expansion of macro 'ss'
54 | viss[p[i].ss]=0;
| ^~
split.cpp:6:12: error: request for member 'second' in 'p.std::vector<int>::operator[](((std::vector<int>::size_type)i))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
6 | #define ss second
| ^~~~~~
split.cpp:56:27: note: in expansion of macro 'ss'
56 | dfs1(p[i].ss);
| ^~
split.cpp:5:12: error: request for member 'first' in 'p.std::vector<int>::operator[](((std::vector<int>::size_type)i))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
5 | #define ff first
| ^~~~~
split.cpp:59:23: note: in expansion of macro 'ff'
59 | if(C[p[i].ff]>=b and n-C[p[i].ff]>=a){
| ^~
split.cpp:59:34: error: 'n' was not declared in this scope
59 | if(C[p[i].ff]>=b and n-C[p[i].ff]>=a){
| ^
split.cpp:5:12: error: request for member 'first' in 'p.std::vector<int>::operator[](((std::vector<int>::size_type)i))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
5 | #define ff first
| ^~~~~
split.cpp:59:43: note: in expansion of macro 'ff'
59 | if(C[p[i].ff]>=b and n-C[p[i].ff]>=a){
| ^~
split.cpp:5:12: error: request for member 'first' in 'p.std::vector<int>::operator[](((std::vector<int>::size_type)i))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
5 | #define ff first
| ^~~~~
split.cpp:60:27: note: in expansion of macro 'ff'
60 | viss[p[i].ff]=1;
| ^~
split.cpp:6:12: error: request for member 'second' in 'p.std::vector<int>::operator[](((std::vector<int>::size_type)i))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
6 | #define ss second
| ^~~~~~
split.cpp:61:27: note: in expansion of macro 'ss'
61 | dfs1(p[i].ss);
| ^~
split.cpp:5:12: error: request for member 'first' in 'p.std::vector<int>::operator[](((std::vector<int>::size_type)i))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
5 | #define ff first
| ^~~~~
split.cpp:62:27: note: in expansion of macro 'ff'
62 | viss[p[i].ff]=0;
| ^~
split.cpp:5:12: error: request for member 'first' in 'p.std::vector<int>::operator[](((std::vector<int>::size_type)i))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
5 | #define ff first
| ^~~~~
split.cpp:64:27: note: in expansion of macro 'ff'
64 | dfs1(p[i].ff);
| ^~