baloni.cpp:5:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
main(){
^
baloni.cpp: In function 'int main()':
baloni.cpp:6:17: warning: format '%i' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
scanf("%i64d",&n);
~~^
baloni.cpp:8:24: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
scanf("%I64d",&a[k]);
~~~~~^
baloni.cpp:6:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%i64d",&n);
~~~~~^~~~~~~~~~~~
baloni.cpp:8:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%I64d",&a[k]);
~~~~~^~~~~~~~~~~~~~~