Problem hungrycats
User MegaG
Submission Time 2025-09-01 16:12:46
Score 0
Max Time N/A
Max Memory N/A

Compile Error

hungrycats.cpp: In function ‘int main()’:
hungrycats.cpp:41:12: error: invalid use of member function ‘std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = long long int; _Alloc = std::allocator<long long int>; std::vector<_Tp, _Alloc>::size_type = long unsigned int]’ (did you forget the ‘()’ ?)
41 | if(negnum.size == 0){
| ~~~~~~~^~~~
| ()
hungrycats.cpp:45:17: error: invalid use of member function ‘std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = long long int; _Alloc = std::allocator<long long int>; std::vector<_Tp, _Alloc>::size_type = long unsigned int]’ (did you forget the ‘()’ ?)
45 | else if(posnum.size == 0){
| ~~~~~~~^~~~
| ()