0_0_28701785_7100.cpp: In function 'int main()': 0_0_28701785_7100.cpp:6:10: error: 'n' was not declared in this scope b = (1+n)*n/2; ^