0_0_24997837_18387.cpp: In function 'int main()': 0_0_24997837_18387.cpp:10:3: error: expected ';' before 'printf' printf("%d\n",(1+n)*n/2); ^