Submission #13897

# Submission time Handle Problem Language Result Execution time Memory
13897 2015-04-17T00:37:56 Z temp 카드 (GA8_card) C++
Compilation error
0 ms 0 KB
main(n,a,m){m=-1;int s=0;
            scanf("%d",&n);while(n--){
              scanf("%d",&a);if(m<a)m=a;s+=a;
            }printf("%d",s-m);}

Compilation message

card.cpp:1:5: error: expected constructor, destructor, or type conversion before ‘(’ token
 main(n,a,m){m=-1;int s=0;
     ^