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