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