icc.cpp:17:21: warning: overflow in conversion from 'double' to 'int' changes value from '1.0e+18' to '2147483647' [-Woverflow]
17 | const int oo = 1e18 + 7, mod = 1e9 + 7;
| ~~~~~^~~
icc.cpp: In function 'void run(int)':
icc.cpp:49:21: 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++) ind[v[i]] = i;
| ~~^~~~~~~~~~
icc.cpp:51:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
51 | if(ind[root(i)] < (v.size() / 2)) a.pb(i);
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
icc.cpp:54:40: error: cannot convert 'std::vector<int>' to 'int*'
54 | bool ck = query(a.size(), b.size(), a, b);
| ^
| |
| 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:61:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
61 | for(int i = mid; i < a.size(); i++) temp.pb(a[i]);
| ~~^~~~~~~~~~
icc.cpp:62:37: error: cannot convert 'std::vector<int>' to 'int*'
62 | if(!query(temp.size(), b.size(), temp, b)) le = mid + 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:72:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
72 | for(int i = mid; i < b.size(); i++) temp.pb(b[i]);
| ~~^~~~~~~~~~
icc.cpp:73:37: error: cannot convert 'std::vector<int>' to 'int*'
73 | if(!query(a.size(), temp.size(), a, temp)) le = mid + 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);
| ~~~~~^