0_0_19980174_31584.cpp: In function 'int main()': 0_0_19980174_31584.cpp:7:34: error: 'eof' was not declared in this scope while(scanf("%d %d",&a,&b) !=eof){ ^