street_lamps.cpp: In function 'int main()':
street_lamps.cpp:31:17: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'bool*' [-Wformat=]
31 | scanf("%d", &a[i]);
| ~^ ~~~~~
| | |
| | bool*
| int*
street_lamps.cpp: In function 'bool scan_ev()':
street_lamps.cpp:13:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
13 | scanf(" %c", &c);
| ~~~~~^~~~~~~~~~~
street_lamps.cpp:17:18: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
17 | scanf(" %c", &c);
| ~~~~~^~~~~~~~~~~
street_lamps.cpp:22:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
22 | scanf(" %c", &c);
| ~~~~~^~~~~~~~~~~
street_lamps.cpp: In function 'int main()':
street_lamps.cpp:28:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
28 | scanf("%d%d", &n, &q);
| ~~~~~^~~~~~~~~~~~~~~~
street_lamps.cpp:31:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
31 | scanf("%d", &a[i]);
| ~~~~~^~~~~~~~~~~~~
street_lamps.cpp:38:18: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
38 | scanf("%d", &c);
| ~~~~~^~~~~~~~~~
street_lamps.cpp:47:18: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
47 | scanf("%d%d", &f, &s);
| ~~~~~^~~~~~~~~~~~~~~~