Problem | palindromicfever |
---|---|
User | PlayVoltz |
Submission Time | 2023-11-02 23:49:38 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
palindromicfever.cpp: In function ‘int main()’:
palindromicfever.cpp:24:39: error: no match for ‘operator[]’ (operand types are ‘std::vector<bool>’ and ‘__gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >::value_type’ {aka ‘std::__cxx11::basic_string<char>’})
24 | if (check(vect[j]+vect[i]) || ispal[vect[j]] || ispal[vect[i]]){
| ^
In file included from /usr/include/c++/9/vector:68,
from /usr/include/c++/9/functional:62,
from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/9/algorithm:71,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from palindromicfever.cpp:1:
/usr/include/c++/9/bits/stl_bvector.h:886:7: note: candidate: ‘std::vector<bool, _Alloc>::reference std::vector<bool, _Alloc