F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_16034106_18388.cpp:1:9: error: #include expects "FILENAME" or <FILENAME>
 #include
         ^
0_0_16034106_18388.cpp: In function 'int main()':
0_0_16034106_18388.cpp:5:21: error: 'scanf' was not declared in this scope
  while(scanf("%d",&n)&&n)
                     ^
0_0_16034106_18388.cpp:9:4: error: expected ';' before 'scanf'
    scanf("%d",&a[i]);
    ^
0_0_16034106_18388.cpp:9:21: error: expected ')' before ';' token
    scanf("%d",&a[i]);
                     ^
0_0_16034106_18388.cpp:11:4: error: expected ';' before 'b'
    b[j]=a[i]*a[i];
    ^
0_0_16034106_18388.cpp:11:18: error: expected ')' before ';' token
    b[j]=a[i]*a[i];
                  ^
0_0_16034106_18388.cpp:13:4: error: expected ';' before 'sum'
    sum+=b[j];
    ^
0_0_16034106_18388.cpp:13:13: error: expected ')' before ';' token
    sum+=b[j];
             ^
0_0_16034106_18388.cpp:14:20: error: 'printf' was not declared in this scope
   printf("%d\n",sum);
                    ^


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 16:34:32, Gzip enabled