icc.cpp: In function 'int vquery(vi, vi)':
icc.cpp:24:22: error: invalid conversion from 'int*' to 'int' [-fpermissive]
24 | return query(sz(A), a, sz(B), b);
| ^
| |
| int*
In file included from icc.cpp:1:
icc.h:10:22: note: initializing argument 2 of 'int query(int, int, int*, int*)'
10 | int query(int a, int b, int *A, int *B);
| ~~~~^
icc.cpp:8:15: error: invalid conversion from 'int' to 'int*' [-fpermissive]
8 | #define sz(x) int(x.size())
| ^~~~~~~~~~~~~
| |
| int
icc.cpp:24:25: note: in expansion of macro 'sz'
24 | return query(sz(A), a, sz(B), b);
| ^~
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:41:4: error: 'queue' was not declared in this scope
41 | queue<int> tbv;
| ^~~~~
icc.cpp:4:1: note: 'std::queue' is defined in header '<queue>'; did you forget to '#include <queue>'?
3 | #include <algorithm>
+++ |+#include <queue>
4 | using namespace std;
icc.cpp:41:10: error: expected primary-expression before 'int'
41 | queue<int> tbv;
| ^~~
icc.cpp:42:4: error: 'tbv' was not declared in this scope
42 | tbv.push(i);
| ^~~
icc.cpp:69:12: error: 'getRandom' was not declared in this scope
69 | int p = getRandom(0, k-1);
| ^~~~~~~~~
icc.cpp:121:16: error: expected ';' before 'edge'
121 | setRoad(u, v)
| ^
| ;
122 | edge[u].push_back(v);
| ~~~~