Problem catlunch
User AltheaZ
Submission Time 2023-10-25 08:37:19
Score 0
Max Time N/A
Max Memory N/A

Compile Error

catlunch.cpp: In function ‘int main()’:
catlunch.cpp:12:11: error: invalid use of member function ‘std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::size_type = long unsigned int]’ (did you forget the ‘()’ ?)
12 | while (t.size>0){
| ~~^~~~
| ()
catlunch.cpp:13:8: error: ‘max_element’ was not declared in this scope
13 | if (*max_element(t.begin(),k)>=0){
| ^~~~~~~~~~~