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