vudu.cpp: In function 'int main()':
vudu.cpp:36:42: warning: conversion lacks type at end of format [-Wformat=]
36 | for (int i = 0; i < n; ++i) scanf("%ll", &a[i]);
| ^
vudu.cpp:36:39: warning: too many arguments for format [-Wformat-extra-args]
36 | for (int i = 0; i < n; ++i) scanf("%ll", &a[i]);
| ^~~~~
vudu.cpp:35:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
35 | scanf("%d", &n);
| ~~~~~^~~~~~~~~~
vudu.cpp:36:38: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
36 | for (int i = 0; i < n; ++i) scanf("%ll", &a[i]);
| ~~~~~^~~~~~~~~~~~~~
vudu.cpp:38:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
38 | scanf("%d", &p);
| ~~~~~^~~~~~~~~~