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