Problem | illuminate |
---|---|
User | aj |
Submission Time | 2025-01-18 19:39:52 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
illuminate.cpp: In function ‘int main()’:
illuminate.cpp:17:9: error: ‘list_input_val’ was not declared in this scope; did you mean ‘input_val’?
17 | list_input_val=list<char>(input_val.begin(), input_val.end());
| ^~~~~~~~~~~~~~
| input_val
illuminate.cpp:26:32: error: invalid use of member function ‘std::__cxx11::list<_Tp, _Alloc>::size_type std::__cxx11::list<_Tp, _Alloc>::size() const [with _Tp = char; _Alloc = std::allocator<char>; std::__cxx11::list<_Tp, _Alloc>::size_type = long unsigned int]’ (did you forget the ‘()’ ?)
26 | for (int j=0;j<city[i].size;j++){
| ()
illuminate.cpp:27:24: error: no match for ‘operator[]’ (operand types are ‘__gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::list<char> >, std::__cxx11::list<char> >::value_type’ {aka ‘std::__cxx11::list<char>’} and ‘int’)
27 |