Problem lineup2
User Logout
Submission Time 2023-11-09 05:39:05
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lineup2.cpp: In function ‘int main()’:
lineup2.cpp:19:22: error: cannot convert ‘__gnu_cxx::__normal_iterator<long long int*, std::vector<long long int> >’ to ‘long long int’ in assignment
19 | answer = max_element(commandVector.begin(), commandVector.end());
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| __gnu_cxx::__normal_iterator<long long int*, std::vector<long long int> >