icc.cpp: In function 'int query(vi, vi)':
icc.cpp:41:39: error: no matching function for call to 'query(std::vector<int>::size_type, std::vector<int>::size_type, vi&, vi&)'
41 | return query(a.size(),b.size(),a,b);
| ^
In file included from icc.cpp:7:
icc.h:10:5: note: candidate: 'int query(int, int, int*, int*)'
10 | int query(int a, int b, int *A, int *B);
| ^~~~~
icc.h:10:30: note: no known conversion for argument 3 from 'vi' {aka 'std::vector<int>'} to 'int*'
10 | int query(int a, int b, int *A, int *B);
| ~~~~~^
icc.cpp:40:5: note: candidate: 'int query(vi, vi)'
40 | int query(vi a,vi b){
| ^~~~~
icc.cpp:40:5: note: candidate expects 2 arguments, 4 provided