0_0_34635481_21143.cpp: In function 'int main()': 0_0_34635481_21143.cpp:20:26: error: 'n' was not declared in this scope while (~scanf("%d", &n)) ^