paprike.cpp: In function 'int main()':
paprike.cpp:30:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
30 | scanf("%d%d", &n, &k);
| ~~~~~^~~~~~~~~~~~~~~~
paprike.cpp:31:39: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
31 | for (int i = 1; i <= n; i++) scanf("%d", &A[i]);
| ~~~~~^~~~~~~~~~~~~
paprike.cpp:33:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
33 | int u, v; scanf("%d%d", &u, &v);
| ~~~~~^~~~~~~~~~~~~~~~