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