snake.cpp: In function 'int main()':
snake.cpp:14:23: error: invalid conversion from 'char' to 'char*' [-fpermissive]
14 | ask_snake(mid1,mid2,a1,a2);
| ^~
| |
| char
In file included from snake.cpp:1:
snakelib.h:7:26: note: initializing argument 3 of 'void ask_snake(int, int, char*, char*)'
7 | void ask_snake(int, int, char*, char*);
| ^~~~~
snake.cpp:14:26: error: invalid conversion from 'char' to 'char*' [-fpermissive]
14 | ask_snake(mid1,mid2,a1,a2);
| ^~
| |
| char
In file included from snake.cpp:1:
snakelib.h:7:33: note: initializing argument 4 of 'void ask_snake(int, int, char*, char*)'
7 | void ask_snake(int, int, char*, char*);
| ^~~~~