0_0_23055945_6068.cpp: In function 'int main()': 0_0_23055945_6068.cpp:17:17: error: 'sum' was not declared in this scope printf("%d\n",sum-n+1); ^