0_0_30954678_30128.cpp: In function 'int main()': 0_0_30954678_30128.cpp:5:23: error: 'n' was not declared in this scope while(scanf("%d",&n) != EOF) ^ 0_0_30954678_30128.cpp:10:25: error: 'i' was not declared in this scope scanf("%d",&i); ^