Problem lineup2
User Hijackedsoul
Submission Time 2024-05-29 22:12:46
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lineup2.cpp: In function ‘int32_t main()’:
lineup2.cpp:21:12: error: no match for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘__gnu_cxx::__normal_iterator<long long unsigned int*, std::vector<long long unsigned int> >’)
21 | std::cout << max_element(arr.begin(), arr.end());
| ~~~~~~~~~ ^~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| | __gnu_cxx::__normal_iterator<long long unsigned int*, std::vector<long long unsigned int> >
| std::ostream {aka std::basic_ostream<char>}
In file included from /usr/include/c++/9/istream:39,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from lineup2.c