election.cpp: In function 'int main()':
election.cpp:48:18: warning: format '%s' expects argument of type 'char*', but argument 3 has type 'char (*)[4000010]' [-Wformat=]
48 | scanf("%lld %s %lld",&n,&s,&q);
| ~^ ~~
| | |
| char* char (*)[4000010]
election.cpp:47:17: warning: unused variable 'j' [-Wunused-variable]
47 | long long i,j,n,m,q,cn,cm,fn,fm,cl,cr,ans;
| ^
election.cpp:47:21: warning: unused variable 'm' [-Wunused-variable]
47 | long long i,j,n,m,q,cn,cm,fn,fm,cl,cr,ans;
| ^
election.cpp:47:25: warning: unused variable 'cn' [-Wunused-variable]
47 | long long i,j,n,m,q,cn,cm,fn,fm,cl,cr,ans;
| ^~
election.cpp:47:28: warning: unused variable 'cm' [-Wunused-variable]
47 | long long i,j,n,m,q,cn,cm,fn,fm,cl,cr,ans;
| ^~
election.cpp:47:31: warning: unused variable 'fn' [-Wunused-variable]
47 | long long i,j,n,m,q,cn,cm,fn,fm,cl,cr,ans;
| ^~
election.cpp:47:34: warning: unused variable 'fm' [-Wunused-variable]
47 | long long 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("%lld %s %lld",&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("%lld %lld",&cl,&cr);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~