0_0_36081810_4945.cpp:5:11: error: '::main' must return 'int' void main() { ^ 0_0_36081810_4945.cpp: In function 'int main()': 0_0_36081810_4945.cpp:13:28: error: 'scanf_s' was not declared in this scope while (scanf_s("%d", &n) != EOF) { ^