Problem | examstress |
---|---|
User | kxd |
Submission Time | 2024-08-29 22:11:34 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
examstress.cpp: In function ‘int main()’:
examstress.cpp:47:16: error: no matching function for call to ‘std::set<long long int>::count(std::string&)’
47 | if(st.count(s)) st.erase(s);
| ^
In file included from /usr/include/c++/9/set:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:87,
from examstress.cpp:1:
/usr/include/c++/9/bits/stl_set.h:748:7: note: candidate: ‘std::set<_Key, _Compare, _Alloc>::size_type std::set<_Key, _Compare, _Alloc>::count(const key_type&) const [with _Key = long long int; _Compare = std::less<long long int>; _Alloc = std::allocator<long long int>; std::set<_Key, _Compare, _Alloc>::size_type = long unsigned int; std::set<_Key, _Compare, _Alloc>::key_type = long long int]’
748 | count(const key_type& __x) const
| ^~~~~
/usr/include/c++/9/bits/stl_set.h:748:29: note: no known conversion for argument 1