This is what argument of type 'char*' is incompatible with parameter of type 'char**' means You should fix your print function prototype (and body) to work with a parameter of the right type (i.e., int (*)[50]). To fix this, simply pass in a char **
You can do this by passing in the address of newarr instead of newarr itself: Your print function first parameter is of type int *board but you are calling the function with an argument of type int (*)[50] This video is a tutorial to fix argument of type const char * is incompatible with parameter of type char * error in c++.
Because the arguments are wrong, it's treating the format string as the file pointer, and the second argument as the format string. The reason why this is a red flag is that what a char* parameter points to could be modified, whereas a string literally cannot be safely modified In your case, the simple solution is to change the parameter to be a const char* since the function really doesn't modify what the pointer points to. Maybe the language is not c++, nor any language i know of
Either way, i can't help you. In general when you get a problem like this it means that you are trying to put a parameter of a type (in this case “const char*” ) that is incompatible or not convertible to the parameter type the function is expecting. I used the function isspace to search through a word for white spaces The problem is that i get an error message when the program builds
Check if the type of the function has a constructor that can be called with the given types If it doesn’t have such a constructor, replace it by a valid default argument. I've gotten to the point where i'm defining the class but i don't know how to define the int's and double's in the arguments I get the error c++ default argument of type is incompatible with parameter of type
I'm not sure how or what i should put to fix the error.