Joker.cpp: In function 'void unite(int, int)':
Joker.cpp:27:5: error: 'class std::vector<std::tuple<int, int, int, int> >' has no member named 'eb'
27 | ba.eb(a, sz[a], b, dsu[b]);
| ^~
Joker.cpp: In function 'int main()':
Joker.cpp:78:2: error: 'vpii' was not declared in this scope
78 | vpii edges;
| ^~~~
Joker.cpp:82:3: error: 'edges' was not declared in this scope
82 | edges.pb(u, v);
| ^~~~~
Joker.cpp:96:35: error: no matching function for call to 'sort(<unresolved overloaded function type>, std::vector<Q>::iterator)'
96 | sort(qu[bl].begin, qu[bl].end());
| ^
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from Joker.cpp:1:
/usr/include/c++/10/bits/stl_algo.h:4849:5: note: candidate: 'void std::sort(_RAIter, _RAIter) [with _RAIter = __gnu_cxx::__normal_iterator<Q*, std::vector<Q> >]'
4849 | sort(_RandomAccessIterator __first, _RandomAccessIterator __last)
| ^~~~
/usr/include/c++/10/bits/stl_algo.h:4849:32: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to '__gnu_cxx::__normal_iterator<Q*, std::vector<Q> >'
4849 | sort(_RandomAccessIterator __first, _RandomAccessIterator __last)
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
/usr/include/c++/10/bits/stl_algo.h:4880:5: note: candidate: 'template<class _RAIter, class _Compare> void std::sort(_RAIter, _RAIter, _Compare)'
4880 | sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
| ^~~~
/usr/include/c++/10/bits/stl_algo.h:4880:5: note: template argument deduction/substitution failed:
Joker.cpp:96:35: note: candidate expects 3 arguments, 2 provided
96 | sort(qu[bl].begin, qu[bl].end());
| ^
In file included from /usr/include/c++/10/algorithm:74,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from Joker.cpp:1:
/usr/include/c++/10/pstl/glue_algorithm_defs.h:292:1: note: candidate: 'template<class _ExecutionPolicy, class _RandomAccessIterator, class _Compare> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> std::sort(_ExecutionPolicy&&, _RandomAccessIterator, _RandomAccessIterator, _Compare)'
292 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp);
| ^~~~
/usr/include/c++/10/pstl/glue_algorithm_defs.h:292:1: note: template argument deduction/substitution failed:
Joker.cpp:96:35: note: candidate expects 4 arguments, 2 provided
96 | sort(qu[bl].begin, qu[bl].end());
| ^
In file included from /usr/include/c++/10/algorithm:74,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from Joker.cpp:1:
/usr/include/c++/10/pstl/glue_algorithm_defs.h:296:1: note: candidate: 'template<class _ExecutionPolicy, class _RandomAccessIterator> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> std::sort(_ExecutionPolicy&&, _RandomAccessIterator, _RandomAccessIterator)'
296 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last);
| ^~~~
/usr/include/c++/10/pstl/glue_algorithm_defs.h:296:1: note: template argument deduction/substitution failed:
Joker.cpp:96:35: note: candidate expects 3 arguments, 2 provided
96 | sort(qu[bl].begin, qu[bl].end());
| ^
Joker.cpp:99:29: error: request for member 'size' in 'bl', which is of non-class type 'int'
99 | for(int j = 0; j < qu[bl.size(); j++){
| ^~~~
Joker.cpp:99:35: error: expected ']' before ';' token
99 | for(int j = 0; j < qu[bl.size(); j++){
| ^
| ]
Joker.cpp:101:15: error: 'edges' was not declared in this scope
101 | int v1 = edges[pr].ff;
| ^~~~~
Joker.cpp:108:15: error: 'edges' was not declared in this scope
108 | int v1 = edges[i].ff;
| ^~~~~
Joker.cpp:113:22: warning: comparison of integer expressions of different signedness: 'std::vector<std::tuple<int, int, int, int> >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
113 | while (ba.size() != was) back();
| ~~~~~~~~~~^~~~~~
Joker.cpp:116:21: warning: comparison of integer expressions of different signedness: 'std::vector<std::tuple<int, int, int, int> >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
116 | while (ba.size() != was_on_start) back();
| ~~~~~~~~~~^~~~~~~~~~~~~~~
Joker.cpp:119:13: error: 'edges' was not declared in this scope
119 | int v1 = edges[i].ff;
| ^~~~~