Home STD Contest Notification Clarification Problems Ranklist Status Print Sign Out

View Compilation Error

1_868_2969_28070.cpp: In function 'int main()':
1_868_2969_28070.cpp:23:23: error: expected ';' before ')' token
         scanf("%d",&n))
                       ^
1_868_2969_28070.cpp:38:9: error: 'ans' was not declared in this scope
         ans=num[1]*num[2]*num[3]*num[4];
         ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-12-02 02:18:16, Gzip enabled