0_0_34692741_20131.cpp: In function 'int main()': 0_0_34692741_20131.cpp:5:13: error: 'n' was not declared in this scope scanf("%d",n); ^ 0_0_34692741_20131.cpp:6:6: error: 'i' was not declared in this scope for(i=0;i<2;i++) ^