teams.cpp:7:23: error: expected ',' or '...' before 'a'
7 | bool can(int m, int[] a) {
| ^
teams.cpp: In function 'bool can(int, int*)':
teams.cpp:9:34: error: 'a' was not declared in this scope
9 | for (int i=0; i<m; i++) sum+=a[i];
| ^
teams.cpp:11:45: error: 'a' was not declared in this scope
11 | for (int i=0; i<m; i++) for (int j=0; j<a[i]; j++) kerd.push_back(a[i]);
| ^
teams.cpp: In function 'void init(int, int*, int*)':
teams.cpp:20:52: error: no matching function for call to 'std::vector<std::pair<int, int> >::push_back(int&, int&)'
20 | for (int i=0; i<n; i++) sz.push_back(b[i], a[i]);
| ^
In file included from /usr/include/c++/9/vector:67,
from /usr/include/c++/9/functional:62,
from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/9/algorithm:71,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from teams.cpp:1:
/usr/include/c++/9/bits/stl_vector.h:1184:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; std::vector<_Tp, _Alloc>::value_type = std::pair<int, int>]'
1184 | push_back(const value_type& __x)
| ^~~~~~~~~
/usr/include/c++/9/bits/stl_vector.h:1184:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/9/bits/stl_vector.h:1200:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; std::vector<_Tp, _Alloc>::value_type = std::pair<int, int>]'
1200 | push_back(value_type&& __x)
| ^~~~~~~~~
/usr/include/c++/9/bits/stl_vector.h:1200:7: note: candidate expects 1 argument, 2 provided