Problem | illuminate |
---|---|
User | aj |
Submission Time | 2025-01-18 19:40:16 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
illuminate.cpp: In function ‘int main()’:
illuminate.cpp:21:41: error: no matching function for call to ‘std::__cxx11::list<char>::push_back(std::__cxx11::list<char>&)’
21 | city[i].push_back(list_input_val);
| ^
In file included from /usr/include/c++/9/list:63,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:79,
from illuminate.cpp:1:
/usr/include/c++/9/bits/stl_list.h:1207:7: note: candidate: ‘void std::__cxx11::list<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = char; _Alloc = std::allocator<char>; std::__cxx11::list<_Tp, _Alloc>::value_type = char]’
1207 | push_back(const value_type& __x)
| ^~~~~~~~~
/usr/include/c++/9/bits/stl_list.h:1207:35: note: no known conversion for argument 1 from ‘std::__cxx11::list<char>’ to ‘const value_type&’ {aka ‘const char&’}
1207 | push_back(const va