0_0_29100951_3111.cpp: In function 'int main()': 0_0_29100951_3111.cpp:9:21: error: 'n' was not declared in this scope scanf("%d",&n); ^