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