0_0_26019955_15580.cpp: In function 'int main(int, char**)': 0_0_26019955_15580.cpp:62:29: error: 'eof' was not declared in this scope while(scanf("%d%d",&n,&m)!=eof){ ^