[Solved] C++ array error about does not match a type [closed]


You may not have expression statements in the namespace-/file-scope. Only declaration statements are allowed.

Declare a function, and write the expressions in the block scope of that function. In particular, I suggest declaring the main function, because a C++ program must contain one. Main function is the entry point of the program.

0

solved C++ array error about does not match a type [closed]