0_0_34949449_6375.cpp: In function 'int main()': 0_0_34949449_6375.cpp:6:25: error: 'scanf_s' was not declared in this scope while (scanf_s("%d", &n) != EOF) ^ 0_0_34949449_6375.cpp:30:10: error: expected '}' at end of input return 0; ^