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