answer.code: In function ‘void solve()’:
answer.code:11:16: error: no matching function for call to ‘std::basic_istream<char>::getline(__gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >::value_type&, int)’
11 | cin.getline(a[0], 6111);
| ~~~~~~~~~~~^~~~~~~~~~~~
In file included from /usr/include/c++/13/sstream:40,
from /usr/include/c++/13/complex:45,
from /usr/include/c++/13/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:127,
from answer.code:1:
/usr/include/c++/13/istream:737:5: note: candidate: ‘std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::getline(char_type*, std::streamsize, char_type) [with _CharT = char; _Traits = std::char_traits<char>; char_type = char; std::streamsize = long int]’
737 | basic_istream<char>::
| ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/istream:737:5: note: candidate expects 3 arguments, 2 provided
/usr/include/c++/13/istream:517:7: note: candidate: ‘std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::getline(char_type*, std::streamsize) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>; char_type = char; std::streamsize = long int]’
517 | getline(char_type* __s, streamsize __n)
| ^~~~~~~
/usr/include/c++/13/istream:517:26: note: no known conversion for argument 1 from ‘__gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >::value_type’ {aka ‘std::__cxx11::basic_string<char>’} to ‘std::basic_istream<char>::char_type*’ {aka ‘char*’}
517 | getline(char_type* __s, streamsize __n)
| ~~~~~~~~~~~^~~
answer.code:14:20: error: no matching function for call to ‘std::basic_istream<char>::getline(__gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >::value_type&, int)’
14 | cin.getline(a[i], 6111);
| ~~~~~~~~~~~^~~~~~~~~~~~
/usr/include/c++/13/istream:737:5: note: candidate: ‘std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::getline(char_type*, std::streamsize, char_type) [with _CharT = char; _Traits = std::char_traits<char>; char_type = char; std::streamsize = long int]’
737 | basic_istream<char>::
| ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/istream:737:5: note: candidate expects 3 arguments, 2 provided
/usr/include/c++/13/istream:517:7: note: candidate: ‘std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::getline(char_type*, std::streamsize) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>; char_type = char; std::streamsize = long int]’
517 | getline(char_type* __s, streamsize __n)
| ^~~~~~~
/usr/include/c++/13/istream:517:26: note: no known conversion for argument 1 from ‘__gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >::value_type’ {aka ‘std::__cxx11::basic_string<char>’} to ‘std::basic_istream<char>::char_type*’ {aka ‘char*’}
517 | getline(char_type* __s, streamsize __n)
| ~~~~~~~~~~~^~~