0_0_25057978_8355.cpp:18:8: error: expected constructor, destructor, or type conversion before '(' token printf("%d\n",sum); ^ 0_0_25057978_8355.cpp:19:1: error: expected declaration before '}' token } ^