| Problem | catfight |
|---|---|
| User | Fjerds |
| Submission Time | 2026-05-06 15:56:18 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
catfight.cpp: In function ‘int main()’:
catfight.cpp:15:14: error: expected ‘;’ before ‘}’ token
15 | cin >> a[i]
| ^
| ;
16 | }
| ~
catfight.cpp:20:2: error: expected ‘,’ or ‘;’ before ‘int’
20 | int count = 0;
| ^~~
catfight.cpp:28:37: error: no matching function for call to ‘max(<unresolved overloaded function type>, int)’
28 | count = max(count, r - l + 1);
| ^
In file included from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from catfight.cpp:1:
/usr/include/c++/9/bits/stl_algobase.h:222:5: note: candidate: ‘constexpr const _Tp& std::max(const _Tp&, const _Tp&) [with _Tp = int]’
222 | max(const _Tp& __a, const _Tp& __b)
| ^~~
/u