0_0_28282204_31774.cpp:6:2: error: expected unqualified-id before 'while' while(scanf("%d%d",&n,&m)!=EOF){ ^