Problem flybot
User vince
Submission Time 2023-11-15 10:58:26
Score 0
Max Time N/A
Max Memory N/A

Compile Error

flybot.cpp: In function ‘int32_t main()’:
flybot.cpp:15:27: error: no match for ‘operator=’ (operand types are ‘std::basic_istream<char>::__istream_type’ {aka ‘std::basic_istream<char>’} and ‘__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type’ {aka ‘char’})
15 | cin >> grid[i][j] = r[j];
| ^
In file included from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from flybot.cpp:1:
/usr/include/c++/9/istream:625:7: note: candidate: ‘std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator=(std::basic_istream<_CharT, _Traits>&&) [with _CharT = char; _Traits = std::char_traits<char>]’
625 | operator=(basic_istream&& __rhs)
| ^~~