0_0_22176919_15152.cpp: In function 'int main()':
0_0_22176919_15152.cpp:6:16: error: 'scanft' was not declared in this scope
scanft("%d",&n);
^
0_0_22176919_15152.cpp:7:16: error: redeclaration of 'int sum'
for(int sum=0,sum=sum+n,n++,n<=100)
^
0_0_22176919_15152.cpp:7:10: note: 'int sum' previously declared here
for(int sum=0,sum=sum+n,n++,n<=100)
^
0_0_22176919_15152.cpp:7:27: error: expected initializer before '++' token
for(int sum=0,sum=sum+n,n++,n<=100)
^
0_0_22176919_15152.cpp:7:27: error: expected ';' before '++' token
0_0_22176919_15152.cpp:7:29: error: expected primary-expression before ',' token
for(int sum=0,sum=sum+n,n++,n<=100)
^
0_0_22176919_15152.cpp:7:36: error: expected ';' before ')' token
for(int sum=0,sum=sum+n,n++,n<=100)
^
|