0_0_34584992_5063.cpp:2:11: error: '::main' must return 'int' void main() ^ 0_0_34584992_5063.cpp: In function 'int main()': 0_0_34584992_5063.cpp:6:39: error: 'scanf_s' was not declared in this scope while (~scanf_s("%c%d", &ch, 1, &n)) ^