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