icc.cpp: In function 'void Nadji(std::vector<int>, std::vector<int>)':
icc.cpp:17:21: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
17 | int mid = l + r >> 1;
| ~~^~~
icc.cpp:20:38: error: cannot convert 'std::vector<int>' to 'int*'
20 | if (query(mid + 1, b.size(), tr, b) == 1) {
| ^~
| |
| 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:29:21: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
29 | int mid = l + r >> 1;
| ~~^~~
icc.cpp:32:31: error: cannot convert 'std::vector<int>' to 'int*'
32 | if (query(mid + 1, 1, tr, {xx}) == 1) {
| ^~
| |
| 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 lambda function:
icc.cpp:49:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
49 | for (int i = 0; i < v.size(); i++) {
| ~~^~~~~~~~~~
icc.cpp: In function 'void run(int)':
icc.cpp:66:45: error: cannot convert 'std::vector<int>' to 'int*'
66 | if (query(aa.size(), bb.size(), aa, bb) == 1) break;
| ^~
| |
| 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:72:25: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
72 | int mid = l + r >> 1;
| ~~^~~
icc.cpp:76:46: error: cannot convert 'std::vector<int>' to 'int*'
76 | if (query(ttr.size(), bb.size(), ttr, bb) == 1) {
| ^~~
| |
| 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:86:25: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
86 | int mid = l + r >> 1;
| ~~^~~
icc.cpp:90:46: error: cannot convert 'std::vector<int>' to 'int*'
90 | if (query(aa.size(), ttr.size(), aa, tr) == 1) {
| ^~
| |
| 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);
| ~~~~~^