Problem | hackingscores |
---|---|
User | thatlycheeoolongdrink |
Submission Time | 2024-10-11 15:14:03 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
hackingscores.cpp: In function ‘int main()’:
hackingscores.cpp:17:12: error: cannot convert ‘__gnu_cxx::__normal_iterator<int*, std::vector<int> >’ to ‘int’ in initialization
17 | int y=find(x.begin(),x.end(),s);
| ~~~~^~~~~~~~~~~~~~~~~~~~~
| |
| __gnu_cxx::__normal_iterator<int*, std::vector<int> >
hackingscores.cpp:18:24: error: no matching function for call to ‘distance(std::vector<int>::iterator, int&)’
18 | y=distance(x.begin(),y);
| ^
In file included from /usr/include/c++/9/bits/stl_algobase.h:66,
from /usr/include/c++/9/bits/char_traits.h:39,
from /usr/include/c++/9/ios:40,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from hackingscores.cpp:1:
/usr/include/c++/9/bits/stl_iterator_base_funcs.h:138:5: note: candi