icc.cpp: In function 'int conquer(std::vector<std::vector<int> >&, int)':
icc.cpp:102:48: error: cannot convert 'std::vector<int>' to 'int*'
102 | return query(lhs.size() , rhs.size() , lhs , rhs ) ;
| ^~~
| |
| 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:94:13: warning: unused variable 'ret' [-Wunused-variable]
94 | int ret = 0 ;
| ^~~
icc.cpp: In function 'void divide_or_conquer(std::vector<int>)':
icc.cpp:136:64: error: cannot convert 'std::vector<int>' to 'int*'
136 | while(qlhs.size() && query(qlhs.size() , qrhs.size() , qlhs , qrhs )){
| ^~~~
| |
| 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:142:64: error: cannot convert 'std::vector<int>' to 'int*'
142 | while(qrhs.size() && query(qlhs.size() , qrhs.size() , qlhs , qrhs )){
| ^~~~
| |
| 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:152:82: error: invalid conversion from 'int' to 'int*' [-fpermissive]
152 | if(find(i) == a && find(j) == b && query(1 ,1 , {i} , {j})){
| ^
| |
| 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:152:82: error: invalid conversion from 'int' to 'int*' [-fpermissive]
152 | if(find(i) == a && find(j) == b && query(1 ,1 , {i} , {j})){
| ^
| |
| int
In file included from icc.cpp:2:
icc.h:10:38: note: initializing argument 4 of 'int query(int, int, int*, int*)'
10 | int query(int a, int b, int *A, int *B);
| ~~~~~^
icc.cpp:118:13: warning: unused variable 'k' [-Wunused-variable]
118 | int k = 0 ;
| ^