Wrong Answer
/in/foo.cc: In function 'int main()': /in/foo.cc:15:20: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'long long int*' [-Wformat=] scanf("%ld",&a[i]); ~~~~~^
/in/foo.cc: In function 'int main()': /in/foo.cc:15:20: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'long long int*' [-Wformat=] scanf("%ld",&a[i]); ~~~~~^