Problem arrayfind
User blob
Submission Time 2023-12-15 12:56:15
Score 0
Max Time N/A
Max Memory N/A

Compile Error

arrayfind.cpp: In function ‘int main()’:
arrayfind.cpp:26:7: error: no match for ‘operator!’ (operand type is ‘__gnu_cxx::__normal_iterator<int*, std::vector<int> >’)
26 | if (!it == arr.end() && *it == x){
| ^~~
arrayfind.cpp:26:7: note: candidate: ‘operator!(bool)’ <built-in>
arrayfind.cpp:26:7: note: no known conversion for argument 1 from ‘__gnu_cxx::__normal_iterator<int*, std::vector<int> >’ to ‘bool’