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

Compile Error

toxic.cpp: In function ‘void determine_type(int)’:
toxic.cpp:12:3: error: ‘val’ was not declared in this scope
12 | val=query_sample(species);
| ^~~
toxic.cpp:12:7: error: ‘query_sample’ was not declared in this scope
12 | val=query_sample(species);
| ^~~~~~~~~~~~
toxic.cpp:16:4: error: ‘answer_type’ was not declared in this scope
16 | answer_type(i,"T");
| ^~~~~~~~~~~
toxic.cpp:22:24: error: no matching function for call to ‘std::vector<int>::insert(int&)’
22 | 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<int>; std::vector<_Tp, _Alloc&g