Problem arrayfind
User Henries
Submission Time 2024-11-14 17:14:32
Score 0
Max Time N/A
Max Memory N/A

Compile Error

arrayfind.cpp: In function ‘int main()’:
arrayfind.cpp:19:84: error: no match for ‘operator>>’ (operand types are ‘std::basic_ostream<char>::__ostream_type’ {aka ‘std::basic_ostream<char>’} and ‘char’)
19 | cout << "Smaller: "<< it - v.begin() - 1 << ', ' << "Greater: " << v.end() - itt >> '\n';
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~ ~~~~
| | |
| | char
| std::basic_ostream<char>::__ostream_type {aka std::basic_ostream<char>}
arrayfind.cpp:19:84: note: candidate: ‘operator>>(int, int)’ <built-in>
19 | cout << "Smaller: "<< it - v.begin() - 1 << ', ' <<