Problem toxic
User felixaniverseesaw
Submission Time 2023-03-19 23:30:20
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:17:23: error: expected ‘;’ before ‘}’ token
17 | nts.push_back(i)
| ^
| ;
18 | }
| ~
toxic.cpp: In lambda function:
toxic.cpp:23:29: error: expected ‘{’ before ‘)’ token
23 | rs = query_sample([i, t]);
| ^
toxic.cpp: In function ‘void determine_type(int)’:
toxic.cpp:23:29: error: could not convert ‘<lambda clo