0_0_22596147_9049.cpp: In function 'int main()': 0_0_22596147_9049.cpp:7:18: error: 'n' was not declared in this scope printf("%d\n\n",(n*(n+1))/2); ^