0_0_15177273_24668.cpp:8:6: error: missing terminating " character
printf("%d\n",sum")
^
0_0_15177273_24668.cpp: In function 'int main()':
0_0_15177273_24668.cpp:7:19: error: expected ';' before ')' token
for(i=1,i<=n,i++)sum=sum+i;
^
0_0_15177273_24668.cpp:9:2: error: expected ')' before '}' token
}
^
0_0_15177273_24668.cpp:9:2: error: expected ';' before '}' token
0_0_15177273_24668.cpp:9:2: error: expected primary-expression before '}' token
0_0_15177273_24668.cpp:9:2: error: expected ')' before '}' token
0_0_15177273_24668.cpp:9:2: error: expected primary-expression before '}' token
|