vudu.cpp: In function 'int main()':
vudu.cpp:15:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
15 | scanf("%lld", &n);
| ~~~~~^~~~~~~~~~~~
vudu.cpp:16:35: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
16 | for (int i=1; i<=n; i++) scanf("%lld", &l[i]);
| ~~~~~^~~~~~~~~~~~~~~
vudu.cpp:17:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
17 | scanf("%lld", &p);
| ~~~~~^~~~~~~~~~~~