vudu.cpp: In function 'int main()':
vudu.cpp:12:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
12 | int n; scanf("%d", &n);
| ~~~~~^~~~~~~~~~
vudu.cpp:13:33: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
13 | for(int i = 1; i<=n; ++i) scanf("%lld", qs+i);
| ~~~~~^~~~~~~~~~~~~~
vudu.cpp:15:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
15 | scanf("%lld", &P);
| ~~~~~^~~~~~~~~~~~