0_0_17884920_30531.cpp:8:2: error: expected primary-expression before 'while' while (scanf("%d",&n) != EOF){ ^ 0_0_17884920_30531.cpp:8:2: error: expected '}' before 'while' 0_0_17884920_30531.cpp:8:2: error: expected ',' or ';' before 'while'