icc.cpp: In function 'ii trace(std::vector<int>, std::vector<int>)':
icc.cpp:45:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
45 | for (int i=0; i<tmp_le.size(); i++) if (i<=mid) tmp_le1.push_back(tmp_le[i]);
| ~^~~~~~~~~~~~~~
icc.cpp:47:53: error: cannot convert 'std::vector<int>' to 'int*'
47 | bool has = query(tmp_le1.size(),tmp_chan.size(),tmp_le1,tmp_chan);
| ^~~~~~~
| |
| std::vector<int>
In file included from icc.cpp:2:
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:68:60: error: cannot convert 'std::vector<std::vector<int> >*' to 'int*'
68 | bool has = query(tmp_le.size(),tmp_chan.size(),le,chan);
| ^~
| |
| std::vector<std::vector<int> >*
In file included from icc.cpp:2:
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:77:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
77 | for (int i=mid; i<le[level].size(); i++)
| ~^~~~~~~~~~~~~~~~~
icc.cpp:79:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
79 | for (int i=mid; i<chan[level].size(); i++)
| ~^~~~~~~~~~~~~~~~~~~
icc.cpp:81:60: error: cannot convert 'std::vector<std::vector<int> >*' to 'int*'
81 | bool has = query(tmp_le.size(),tmp_chan.size(),le,chan);
| ^~
| |
| std::vector<std::vector<int> >*
In file included from icc.cpp:2:
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);
| ~~~~~^