Problem | illuminate |
---|---|
User | aj |
Submission Time | 2025-01-18 19:37:41 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
illuminate.cpp: In function ‘int main()’:
illuminate.cpp:24:32: error: invalid use of member function ‘std::__cxx11::list<_Tp, _Alloc>::size_type std::__cxx11::list<_Tp, _Alloc>::size() const [with _Tp = std::__cxx11::basic_string<char>; _Alloc = std::allocator<std::__cxx11::basic_string<char> >; std::__cxx11::list<_Tp, _Alloc>::size_type = long unsigned int]’ (did you forget the ‘()’ ?)
24 | for (int j=0;j<city[i].size;j++){
| ()
illuminate.cpp:25:24: error: no match for ‘operator[]’ (operand types are ‘__gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::list<std::__cxx11::basic_string<char> > >, std::__cxx11::list<std::__cxx11::basic_string<char> > >::value_type’ {aka ‘std::__cxx11::list<std::__cxx11::basic_string<char> >’} and ‘int’)
25 | if (city[i][j]=='.'){
| ^