0_0_20486643_23374.cpp: In function 'int main()':
0_0_20486643_23374.cpp:5:8: error: expected unqualified-id before ';' token
int n,;int step=0;
^
0_0_20486643_23374.cpp:10:7: error: incompatible types in assignment of 'int' to 'int [1000]'
{sum=0;
^
0_0_20486643_23374.cpp:14:11: error: 'i' was not declared in this scope
cin >> i;
^
0_0_20486643_23374.cpp:18:30: error: expected ';' before '!' token
for(int k=0;k<step&&sum[step]!&0;k++)cout << sum << endl<<endl;}
^
0_0_20486643_23374.cpp:18:32: error: lvalue required as unary '&' operand
for(int k=0;k<step&&sum[step]!&0;k++)cout << sum << endl<<endl;}
^
0_0_20486643_23374.cpp:18:33: error: expected ')' before ';' token
for(int k=0;k<step&&sum[step]!&0;k++)cout << sum << endl<<endl;}
^
0_0_20486643_23374.cpp:18:34: error: 'k' was not declared in this scope
for(int k=0;k<step&&sum[step]!&0;k++)cout << sum << endl<<endl;}
^
|