Problem | evans_peculiar_hobby |
---|---|
User | HighLithop |
Submission Time | 2025-08-14 15:38:17 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
evans_peculiar_hobby.cpp:3:17: error: missing terminating > character
3 | #include <vector
| ^
evans_peculiar_hobby.cpp: In function ‘int main()’:
evans_peculiar_hobby.cpp:17:35: error: no matching function for call to ‘abs(__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type&, long long int)’
17 | cout << max(abs(a[0], abs(a[n-1])) << "\n";
| ^
In file included from /usr/include/c++/9/cstdlib:75,
from /usr/include/c++/9/ext/string_conversions.h:41,
from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/ostream:38,