Problem lvm
User SheepHeads
Submission Time 2023-11-26 10:38:19
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lvm.cpp: In function ‘int main()’:
lvm.cpp:32:21: error: cannot convert ‘std::vector<long long int>::iterator’ {aka ‘__gnu_cxx::__normal_iterator<long long int*, std::vector<long long int> >’} to ‘long long int’ in assignment
32 | reg = answers.end();
| ~~~~~~~~~~~^~
| |
| std::vector<long long int>::iterator {aka __gnu_cxx::__normal_iterator<long long int*, std::vector<long long int> >}
lvm.cpp:38:19: error: cannot convert ‘std::vector<long long int>::iterator’ {aka ‘__gnu_cxx::__normal_iterator<long long int*, std::vector<long long int> >’} to ‘long long int’ in assignment
38 | x = answers.end();
| ~~~~~~~~~~~^~
| |
| std::vector<long long int>::iterator {aka __gnu_cxx::__normal_iterator<long long int*, std::vector<long long int> >}
lvm.cpp:40