vudu.cpp: In function 'void solve()':
vudu.cpp:23:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
23 | scanf("%d", &N);
| ~~~~~^~~~~~~~~~
vudu.cpp:25:25: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
25 | for (auto& a : A) scanf("%lld", &a);
| ~~~~~^~~~~~~~~~~~
vudu.cpp:26:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
26 | scanf("%d", &P);
| ~~~~~^~~~~~~~~~