0_0_20081928_32009.cpp: In function 'int main()': 0_0_20081928_32009.cpp:17:3: error: expected ';' before 'while' while(scanf("%d",&n)!=EOF){ ^