icc.cpp:111:15: error: conflicting declaration 'int C [110]'
int pC, C[maxn];
^
icc.cpp:97:14: note: previous declaration as 'std::vector<int> C [110]'
vector <int> C[maxC];
^
icc.cpp: In function 'void combineA(int, int)':
icc.cpp:127:11: error: no match for 'operator=' (operand types are 'std::vector<int>' and 'int')
C[pC++] = B[i];
^
In file included from /usr/include/c++/5/vector:69:0,
from /usr/include/c++/5/bits/random.h:34,
from /usr/include/c++/5/random:49,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:64,
from icc.cpp:2:
/usr/include/c++/5/bits/vector.tcc:167:5: note: candidate: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = int; _Alloc = std::allocator<int>]
vector<_Tp, _Alloc>::
^
/usr/include/c++/5/bits/vector.tcc:167:5: note: no known conversion for argument 1 from 'int' to 'const std::vector<int>&'
In file included from /usr/include/c++/5/vector:64:0,
from /usr/include/c++/5/bits/random.h:34,
from /usr/include/c++/5/random:49,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:64,
from icc.cpp:2:
/usr/include/c++/5/bits/stl_vector.h:448:7: note: candidate: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::vector<_Tp, _Alloc>&&) [with _Tp = int; _Alloc = std::allocator<int>]
operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
^
/usr/include/c++/5/bits/stl_vector.h:448:7: note: no known conversion for argument 1 from 'int' to 'std::vector<int>&&'
/usr/include/c++/5/bits/stl_vector.h:470:7: note: candidate: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = int; _Alloc = std::allocator<int>]
operator=(initializer_list<value_type> __l)
^
/usr/include/c++/5/bits/stl_vector.h:470:7: note: no known conversion for argument 1 from 'int' to 'std::initializer_list<int>'
icc.cpp:129:25: error: cannot convert 'std::vector<int>*' to 'int*' for argument '4' to 'int query(int, int, int*, int*)'
if (query (pA, pC, A, C))
^
icc.cpp: In function 'void combineB(int, int)':
icc.cpp:147:11: error: no match for 'operator=' (operand types are 'std::vector<int>' and 'int')
C[pC++] = A[i];
^
In file included from /usr/include/c++/5/vector:69:0,
from /usr/include/c++/5/bits/random.h:34,
from /usr/include/c++/5/random:49,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:64,
from icc.cpp:2:
/usr/include/c++/5/bits/vector.tcc:167:5: note: candidate: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = int; _Alloc = std::allocator<int>]
vector<_Tp, _Alloc>::
^
/usr/include/c++/5/bits/vector.tcc:167:5: note: no known conversion for argument 1 from 'int' to 'const std::vector<int>&'
In file included from /usr/include/c++/5/vector:64:0,
from /usr/include/c++/5/bits/random.h:34,
from /usr/include/c++/5/random:49,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:64,
from icc.cpp:2:
/usr/include/c++/5/bits/stl_vector.h:448:7: note: candidate: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::vector<_Tp, _Alloc>&&) [with _Tp = int; _Alloc = std::allocator<int>]
operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
^
/usr/include/c++/5/bits/stl_vector.h:448:7: note: no known conversion for argument 1 from 'int' to 'std::vector<int>&&'
/usr/include/c++/5/bits/stl_vector.h:470:7: note: candidate: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = int; _Alloc = std::allocator<int>]
operator=(initializer_list<value_type> __l)
^
/usr/include/c++/5/bits/stl_vector.h:470:7: note: no known conversion for argument 1 from 'int' to 'std::initializer_list<int>'
icc.cpp:149:25: error: cannot convert 'std::vector<int>*' to 'int*' for argument '4' to 'int query(int, int, int*, int*)'
if (query (pB, pC, B, C))
^
icc.cpp: In function 'void solve()':
icc.cpp:161:5: error: 'i' was not declared in this scope
C[i].clear();
^