Problem catfight
User asbx
Submission Time 2023-12-04 11:40:36
Score 0
Max Time N/A
Max Memory N/A

Compile Error

catfight.cpp: In function ‘int main()’:
catfight.cpp:20:14: error: invalid use of non-static member function ‘std::queue<_Tp, _Sequence>::size_type std::queue<_Tp, _Sequence>::size() const [with _Tp = long long int; _Sequence = std::deque<long long int, std::allocator<long long int> >; std::queue<_Tp, _Sequence>::size_type = long unsigned int]’
20 | o=max(o,q.size));
| ~~^~~~
In file included from /usr/include/c++/9/queue:64,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:86,
from catfight.cpp:1:
/usr/include/c++/9/bits/stl_queue.h:202:7: note: declared here
202 | size() const
| ^~~~