icc.cpp: In function 'void f(std::vector<int>, std::vector<int>&)':
icc.cpp:17:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
17 | for(int i = 0; i <= (b.size() - 1) / 2; i++){
| ~~^~~~~~~~~~~~~~~~~~~~~
icc.cpp:20:40: error: cannot convert 'std::vector<int>' to 'int*'
20 | if(query(a.size(), tmp.size(), a, tmp)){
| ^
| |
| std::vector<int>
In file included from icc.cpp:1:
icc.h:10:30: note: initializing argument 3 of 'int query(int, int, int*, int*)'
10 | int query(int a, int b, int *A, int *B);
| ~~~~~^
icc.cpp: In function 'void run(int)':
icc.cpp:39:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
39 | for(int i = 0; i < comps.size(); i++){
| ~~^~~~~~~~~~~~~~
icc.cpp:43:42: error: cannot convert 'std::vector<int>' to 'int*'
43 | if(query(a.size(), b.size(), a, b)) break;
| ^
| |
| std::vector<int>
In file included from icc.cpp:1:
icc.h:10:30: note: initializing argument 3 of 'int query(int, int, int*, int*)'
10 | int query(int a, int b, int *A, int *B);
| ~~~~~^
icc.cpp:60:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
60 | for(int i = 0; i < comps.size(); i++){
| ~~^~~~~~~~~~~~~~