seesaw.cpp: In function 'int main()':
seesaw.cpp:21:35: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
21 | for(int i=1;i<=n;i++) scanf("%d",&a[i]);
| ~^ ~~~~~
| | |
| | long long int*
| int*
| %lld
seesaw.cpp:20:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
20 | scanf("%d",&n);
| ~~~~~^~~~~~~~~
seesaw.cpp:21:32: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
21 | for(int i=1;i<=n;i++) scanf("%d",&a[i]);
| ~~~~~^~~~~~~~~~~~