Problem | devour |
---|---|
User | blob |
Submission Time | 2023-11-24 12:56:55 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
devour.cpp: In function ‘bool Dead()’:
devour.cpp:9:14: error: no matching function for call to ‘std::set<int>::size(int)’
9 | s.size(H-1) = alive;
| ^
In file included from /usr/include/c++/9/set:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:87,
from devour.cpp:1:
/usr/include/c++/9/bits/stl_set.h:419:7: note: candidate: ‘std::set<_Key, _Compare, _Alloc>::size_type std::set<_Key, _Compare, _Alloc>::size() const [with _Key = int; _Compare = std::less<int>; _Alloc = std::allocator<int>; std::set<_Key, _Compare, _Alloc>::size_type = long unsigned int]’
419 | size() const _GLIBCXX_NOEXCEPT
| ^~~~
/usr/include/c++/9/bits/stl_set.h:419:7: note: candidate expects 0 arguments, 1 provided
devour.cpp: In function ‘int main()’:
devour.cpp:25:2: error: expected ‘,’ or ‘;’ before ‘for’
25 | for (int i = 0; i < K; i++){