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

Compile Error

toxic.cpp: In function ‘void determine_type(int)’:
toxic.cpp:5:7: error: ‘vector’ is not a member of ‘std’
5 | std::vector species={};
| ^~~~~~
toxic.cpp:2:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
1 | #include <unordered_set>
+++ |+#include <vector>
2 | #define set unordered_set
toxic.cpp:6:11: error: class template argument deduction failed:
6 | std::set viruses;
| ^~~~~~~
toxic.cpp:6:11: error: no matching function for call to ‘unordered_set()’
In file included from /usr/include/c++/9/unordered_set:47,
from toxic.cpp:1:
/usr/include/c++/9/bits/unordered_set.h:833:5: note: candidate: ‘template<class _InputIterator, class _Hash, class _Pred, class _Allocator, class, class, class, class> std::unordered_set(_InputIterator, _InputIterator, std::unordered_set<int>::size_type, _Hash, _Pred, _Alloc