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