Problem toxic
User HighLithop
Submission Time 2023-12-08 15:20:34
Score 0
Max Time N/A
Max Memory N/A

Compile Error

toxic.cpp: In function ‘void determine_type(int)’:
toxic.cpp:17:18: error: invalid conversion from ‘const char*’ to ‘char’ [-fpermissive]
17 | answer_type(i,"T");
| ^~~
| |
| const char*
In file included from toxic.cpp:4:
toxic.h:5:30: note: initializing argument 2 of ‘void answer_type(int, char)’
5 | void answer_type(int x, char c);
| ~~~~~^
toxic.cpp:23:24: error: no matching function for call to ‘std::vector<int>::insert(int&)’
23 | species.insert(tester);
| ^
In file included from /usr/include/c++/9/vector:72,
from toxic.cpp:2:
/usr/include/c++/9/bits/vector.tcc:130:5: note: candidate: ‘std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(std::vector<_Tp, _Alloc>::const_iterator, const value_type&) [with _Tp = int; _Alloc = std::allocator&l