0_0_36252655_24284.cpp: In function 'int main()':
0_0_36252655_24284.cpp:4:7: error: expected initializer before 'i'
int n i,sum=0;
^
0_0_36252655_24284.cpp:5:19: error: 'n' was not declared in this scope
while(scanf("%d",&n)!=-1)
^
0_0_36252655_24284.cpp:7:1: error: 'sum' was not declared in this scope
sum=0;
^
0_0_36252655_24284.cpp:8:5: error: 'i' was not declared in this scope
for(i=0;i<=n;i++)
^
|