Problem | toxic |
---|---|
User | Ok |
Submission Time | 2024-01-06 17:20:11 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
toxic.cpp: In function ‘void determine_type(int)’:
toxic.cpp:132:31: error: no match for ‘operator&&’ (operand types are ‘bool’ and ‘__gnu_cxx::__normal_iterator<int*, std::vector<int> >’)
132 | else if(type[i] == 0 && find_if(pro.begin(),pro.end(),i)){
| ~~~~~~~~~~~~~ ^~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| bool __gnu_cxx::__normal_iterator<int*, std::vector<int> >
toxic.cpp:132:31: note: candidate: ‘operator&&(bool, bool)’ <built-in>
132 | else if(type[i] == 0 && find_if(pro.begin(),pro.end(),i)){
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
toxic.cpp:132:31: note: no known conversion for argument 2 from ‘__gnu_cxx::__normal_iterator<int*, std::vector<int> >’ to ‘bool’
In file included from /usr/include/c++/9/valarray:603,
from /usr