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);
^
|