snake.cpp: In function 'int main()':
snake.cpp:12:33: error: invalid conversion from 'char' to 'char*' [-fpermissive]
ask_snake(mid, r, a1, a2);
^
In file included from snake.cpp:2:0:
snakelib.h:7:6: note: initializing argument 3 of 'void ask_snake(int, int, char*, char*)'
void ask_snake(int, int, char*, char*);
^~~~~~~~~
snake.cpp:12:33: error: invalid conversion from 'char' to 'char*' [-fpermissive]
ask_snake(mid, r, a1, a2);
^
In file included from snake.cpp:2:0:
snakelib.h:7:6: note: initializing argument 4 of 'void ask_snake(int, int, char*, char*)'
void ask_snake(int, int, char*, char*);
^~~~~~~~~
snake.cpp:24:33: error: invalid conversion from 'char' to 'char*' [-fpermissive]
ask_snake(mid, R, a1, a2);
^
In file included from snake.cpp:2:0:
snakelib.h:7:6: note: initializing argument 3 of 'void ask_snake(int, int, char*, char*)'
void ask_snake(int, int, char*, char*);
^~~~~~~~~
snake.cpp:24:33: error: invalid conversion from 'char' to 'char*' [-fpermissive]
ask_snake(mid, R, a1, a2);
^
In file included from snake.cpp:2:0:
snakelib.h:7:6: note: initializing argument 4 of 'void ask_snake(int, int, char*, char*)'
void ask_snake(int, int, char*, char*);
^~~~~~~~~