Problem | eating |
---|---|
User | Elnathan |
Submission Time | 2023-07-24 16:09:54 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
eating.cpp: In function ‘int main()’:
eating.cpp:12:5: error: ‘unsigned’ specified with ‘long double’
12 | unsigned long double id, food;
| ^~~~~~~~
eating.cpp:12:5: error: ‘unsigned’ specified with ‘long double’
eating.cpp:16:35: error: no matching function for call to ‘std::set<std::pair<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> > >::count(<brace-enclosed initializer list>)’
16 | if (thing.count({id, food})) {
| ^
In file included from /usr/include/c++/9/set:61,
from eating.cpp:2:
/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<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> >; _Compare = std::less<std::pair<std::__cxx11::ba