Problem WA1
User lHog
Submission Time 2024-05-09 14:38:49
Score 0
Max Time N/A
Max Memory N/A

Compile Error

WA1.cpp: In function ‘std::string g(long long int)’:
WA1.cpp:9:22: error: no matching function for call to ‘std::set<std::pair<long long int, long long int> >::count(std::initializer_list<long long int>&)’
9 | if (c.count(o) != 0) c.erase(o);
| ^
In file included from /usr/include/c++/9/set:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:87,
from WA1.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 = std::pair<long long int, long long int>; _Compare = std::less<std::pair<long long int, long long int> >; _Alloc = std::allocator<std::pair<long long int, long long int> >; std::set<_Key, _Compare, _Alloc>::size_type = long unsigned int; std::set<_Key, _Compare, _Alloc>::key_type = st