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