Problem ballgame
User username
Submission Time 2024-09-28 10:30:25
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ballgame.cpp: In function ‘int ballgame(int, int, int, int*, int*)’:
ballgame.cpp:35:74: error: no match for ‘operator-’ (operand types are ‘__gnu_cxx::__normal_iterator<int*, std::vector<int> >’ and ‘std::vector<int>’)
35 | int s=lower_bound(coords.begin(),coords.end(),C[arr[i].second]-D)-coords+1;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
| | |
| | std::vector<int>
| __gnu_cxx::__normal_iterator<int*, std::vector<int> >
In file included from /usr/include/c++/9/bits/stl_algobase.h:67,
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,