election.cpp: In function 'int main()':
election.cpp:48:16: warning: format '%s' expects argument of type 'char*', but argument 3 has type 'char (*)[4000010]' [-Wformat=]
48 | scanf("%d %s %d",&n,&s,&q);
| ~^ ~~
| | |
| char* char (*)[4000010]
election.cpp:47:11: warning: unused variable 'j' [-Wunused-variable]
47 | int i,j,n,m,q,cn,cm,fn,fm,cl,cr,ans;
| ^
election.cpp:47:15: warning: unused variable 'm' [-Wunused-variable]
47 | int i,j,n,m,q,cn,cm,fn,fm,cl,cr,ans;
| ^
election.cpp:47:19: warning: unused variable 'cn' [-Wunused-variable]
47 | int i,j,n,m,q,cn,cm,fn,fm,cl,cr,ans;
| ^~
election.cpp:47:22: warning: unused variable 'cm' [-Wunused-variable]
47 | int i,j,n,m,q,cn,cm,fn,fm,cl,cr,ans;
| ^~
election.cpp:47:25: warning: unused variable 'fn' [-Wunused-variable]
47 | int i,j,n,m,q,cn,cm,fn,fm,cl,cr,ans;
| ^~
election.cpp:47:28: warning: unused variable 'fm' [-Wunused-variable]
47 | int i,j,n,m,q,cn,cm,fn,fm,cl,cr,ans;
| ^~
election.cpp:48:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
48 | scanf("%d %s %d",&n,&s,&q);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~
election.cpp:63:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
63 | scanf("%d %d",&cl,&cr);
| ~~~~~^~~~~~~~~~~~~~~~~