vudu.cpp: In function 'int main()':
vudu.cpp:43:14: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
43 | printf("%d\n", ans);
| ~^ ~~~
| | |
| int long long int
| %lld
vudu.cpp:27:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
27 | scanf("%d", &n);
| ~~~~~^~~~~~~~~~
vudu.cpp:31:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
31 | scanf("%lld\n", a+i);
| ~~~~~^~~~~~~~~~~~~~~
vudu.cpp:34:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
34 | scanf("%d", &p);
| ~~~~~^~~~~~~~~~