street_lamps.cpp: In function 'int main()':
street_lamps.cpp:70:19: warning: format '%s' expects argument of type 'char*', but argument 4 has type 'char (*)[800010]' [-Wformat=]
70 | scanf("%d %d %s",&n,&q,&s);
| ~^ ~~
| | |
| char* char (*)[800010]
street_lamps.cpp:84:17: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[800010]' [-Wformat=]
84 | scanf("%s",&inp);
| ~^ ~~~~
| | |
| | char (*)[800010]
| char*
street_lamps.cpp:69:11: warning: unused variable 'j' [-Wunused-variable]
69 | int i,j,n,m,q,f,t,cst,cou,su,k;
| ^
street_lamps.cpp:69:15: warning: unused variable 'm' [-Wunused-variable]
69 | int i,j,n,m,q,f,t,cst,cou,su,k;
| ^
street_lamps.cpp:69:23: warning: unused variable 'cst' [-Wunused-variable]
69 | int i,j,n,m,q,f,t,cst,cou,su,k;
| ^~~
street_lamps.cpp:69:27: warning: unused variable 'cou' [-Wunused-variable]
69 | int i,j,n,m,q,f,t,cst,cou,su,k;
| ^~~
street_lamps.cpp:69:34: warning: unused variable 'k' [-Wunused-variable]
69 | int i,j,n,m,q,f,t,cst,cou,su,k;
| ^
street_lamps.cpp:70:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
70 | scanf("%d %d %s",&n,&q,&s);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~
street_lamps.cpp:84:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
84 | scanf("%s",&inp);
| ~~~~~^~~~~~~~~~~
street_lamps.cpp:87:18: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
87 | scanf("%d",&f);
| ~~~~~^~~~~~~~~
street_lamps.cpp:100:18: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
100 | scanf("%d %d",&f,&t);
| ~~~~~^~~~~~~~~~~~~~~