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