Problem toxic
User felixaniverseesaw
Submission Time 2023-03-19 23:32:13
Score 0
Max Time N/A
Max Memory N/A

Compile Error

toxic.cpp: In function ‘void determine_type(int)’:
toxic.cpp:13:22: error: invalid conversion from ‘const char*’ to ‘char’ [-fpermissive]
13 | answer_type(i, "T");
| ^~~
| |
| const char*
In file included from toxic.cpp:2:
toxic.h:5:30: note: initializing argument 2 of ‘void answer_type(int, char)’
5 | void answer_type(int x, char c);
| ~~~~~^
toxic.cpp:25:24: error: invalid conversion from ‘const char*’ to ‘char’ [-fpermissive]
25 | answer_type(i, "S");
| ^~~
| |
| const char*
In file included from toxic.cpp:2:
toxic.h:5:30: note: initializing argument 2 of ‘void answer_type(int, char)’
5 | void answer_type(int x, char c);
| ~~~~~^
toxic.cpp:27:24: error: invalid conversion