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