'function' : looks like a function definition, but there is no formal parameter list; skipping apparent body
A function definition is missing its argument list. The following sample generates C2470:
int MyFunc { // ... }; void main(){ MyFunc(); }
This error may also be issued on a brace-enclosed initialization that is missing an =.
int arr[] { 1, 2, 3, 4, 5 };
Instead, you should use:
int arr[] = { 1, 2, 3, 4, 5 };