0_0_17848456_20553.cpp: In function 'int main()': 0_0_17848456_20553.cpp:52:27: error: 'eof' was not declared in this scope while(scanf("%d", &n) != eof) ^