icc.cpp: In function 'void uni(int, int)':
icc.cpp:29:10: warning: unused variable 'i' [-Wunused-variable]
29 | int a,b,i,j;
| ^
icc.cpp:29:12: warning: unused variable 'j' [-Wunused-variable]
29 | int a,b,i,j;
| ^
icc.cpp: In function 'pii operate(std::vector<int>&, std::vector<int>&)':
icc.cpp:7:28: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
7 | #define fr(i,m,n) for(i=m;i<n;i++)
......
41 | fr(i,0,g.size()) a[i]=g[i];
| ~~~~~~~~~~~~
icc.cpp:41:2: note: in expansion of macro 'fr'
41 | fr(i,0,g.size()) a[i]=g[i];
| ^~
icc.cpp:7:28: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
7 | #define fr(i,m,n) for(i=m;i<n;i++)
......
42 | fr(i,0,h.size()) b[i]=g[i];
| ~~~~~~~~~~~~
icc.cpp:42:2: note: in expansion of macro 'fr'
42 | fr(i,0,h.size()) b[i]=g[i];
| ^~
icc.cpp:44:21: error: invalid conversion from 'int*' to 'int' [-fpermissive]
44 | if(!query(g.size(),a,h.size(),b)) return {0,0};
| ^
| |
| int*
In file included from icc.cpp:2:
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:44:29: error: invalid conversion from 'std::vector<int>::size_type' {aka 'long unsigned int'} to 'int*' [-fpermissive]
44 | if(!query(g.size(),a,h.size(),b)) return {0,0};
| ~~~~~~^~
| |
| std::vector<int>::size_type {aka long unsigned 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:48:21: error: invalid conversion from 'int*' to 'int' [-fpermissive]
48 | if(query(g.size(),a,mid,b))
| ^
| |
| int*
In file included from icc.cpp:2:
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:48:23: error: invalid conversion from 'int' to 'int*' [-fpermissive]
48 | if(query(g.size(),a,mid,b))
| ^~~
| |
| 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:62:16: error: invalid conversion from 'int*' to 'int' [-fpermissive]
62 | if(query(mid,a,x,b))
| ^
| |
| int*
In file included from icc.cpp:2:
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:62:18: error: invalid conversion from 'int' to 'int*' [-fpermissive]
62 | if(query(mid,a,x,b))
| ^
| |
| 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:40:26: warning: unused variable 'j' [-Wunused-variable]
40 | int a[103],b[103],x,y,i,j;
| ^
icc.cpp: In function 'void run(int)':
icc.cpp:73:12: warning: unused variable 'a' [-Wunused-variable]
73 | int i,j,k,a,b,c,x,y;
| ^
icc.cpp:73:14: warning: unused variable 'b' [-Wunused-variable]
73 | int i,j,k,a,b,c,x,y;
| ^
icc.cpp:73:16: warning: unused variable 'c' [-Wunused-variable]
73 | int i,j,k,a,b,c,x,y;
| ^
icc.cpp:73:18: warning: unused variable 'x' [-Wunused-variable]
73 | int i,j,k,a,b,c,x,y;
| ^
icc.cpp:73:20: warning: unused variable 'y' [-Wunused-variable]
73 | int i,j,k,a,b,c,x,y;
| ^