0_0_39389835_28928.cpp:3:1: error: '::main' must return 'int' 3 | void main() | ^~~~ 0_0_39389835_28928.cpp: In function 'int main()': 0_0_39389835_28928.cpp:6:32: error: 'n' was not declared in this scope 6 | while (~scanf_s("%d", &n)) | ^