Problem | hackingscores |
---|---|
User | thatlycheeoolongdrink |
Submission Time | 2024-10-11 15:13:47 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
hackingscores.cpp: In function ‘int main()’:
hackingscores.cpp:19:12: error: cannot convert ‘__gnu_cxx::__normal_iterator<long int*, std::vector<long int> >’ to ‘long int’ in initialization
19 | int y=find(x.begin(),x.end(),s);
| ~~~~^~~~~~~~~~~~~~~~~~~~~
| |
| __gnu_cxx::__normal_iterator<long int*, std::vector<long int> >
hackingscores.cpp:20:24: error: no matching function for call to ‘distance(std::vector<long int>::iterator, long int&)’
20 | 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_itera