0_0_15024513_22181.cpp:4:11: error: '::main' must return 'int' void main(){ ^ 0_0_15024513_22181.cpp: In function 'int main()': 0_0_15024513_22181.cpp:6:18: error: 'scanf_s' was not declared in this scope scanf_s("%d", &n); ^