0_0_27275137_14641.cpp: In function 'int main()':
0_0_27275137_14641.cpp:7:1: error: expected primary-expression before 'if'
if(n==0){
^
0_0_27275137_14641.cpp:9:1: error: 'else' without a previous 'if'
else{
^
0_0_27275137_14641.cpp:10:5: error: 'i' was not declared in this scope
for(i=0;i<=n,i++)
^
0_0_27275137_14641.cpp:10:17: error: expected ';' before ')' token
for(i=0;i<=n,i++)
^
0_0_27275137_14641.cpp:11:7: error: 'a' was not declared in this scope
{sum+=a;
^
|