worst_reporter3.cpp: In function 'int main()':
worst_reporter3.cpp:21:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
21 | for(int i = 1; i < st.size(); i++) {
| ~~^~~~~~~~~~~
worst_reporter3.cpp:22:7: warning: unused variable 'last' [-Wunused-variable]
22 | int last = st[i-1], aq = st[i];
| ^~~~
worst_reporter3.cpp:22:23: warning: unused variable 'aq' [-Wunused-variable]
22 | int last = st[i-1], aq = st[i];
| ^~
worst_reporter3.cpp:9:17: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
9 | int n, q; scanf("%d %d", &n, &q);
| ~~~~~^~~~~~~~~~~~~~~~~
worst_reporter3.cpp:12:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
12 | scanf("%d", d+i);
| ~~~~~^~~~~~~~~~~
worst_reporter3.cpp:34:21: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
34 | int t, L, R; scanf("%d %d %d", &t, &L, &R);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~