lot.cpp: In function 'int main()':
lot.cpp:19:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
19 | int l; scanf("%d %d", &n, &l);
| ~~~~~^~~~~~~~~~~~~~~~~
lot.cpp:21:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
21 | scanf("%d", a+i);
| ~~~~~^~~~~~~~~~~
lot.cpp:26:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
26 | int q; scanf("%d", &q); // testando q == 1
| ~~~~~^~~~~~~~~~
lot.cpp:28:18: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
28 | int val_q; scanf("%d", &val_q);
| ~~~~~^~~~~~~~~~~~~~