Wrong Answer
/in/foo.cc: In function 'int main()':
/in/foo.cc:25:25: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
{scanf("%I64d",&a[i]); sum+=a[i];}
^
/in/foo.cc:28:25: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
printf("%I64d",sum-mins);
^