popeala.cpp: In function 'int main()':
popeala.cpp:31:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
31 | scanf("%d %d %d", &n, &t, &s);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
popeala.cpp:33:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
33 | scanf("%d", &p[i]);
| ~~~~~^~~~~~~~~~~~~
popeala.cpp:37:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
37 | scanf(" %s", res+1);
| ~~~~~^~~~~~~~~~~~~~
popeala.cpp: In function 'void go(int, int, int, int, int)':
popeala.cpp:26:34: warning: 'opt' may be used uninitialized in this function [-Wmaybe-uninitialized]
26 | go(idx, l, mid-1, pl, min(opt+40, pr));
| ~~~^~~