0_0_20306344_5691.cpp: In function 'int main()': 0_0_20306344_5691.cpp:10:9: error: 'n' was not declared in this scope sum2=(n+1)*(n+1)*(n+1); ^