snake_escaping.cpp: In function 'void tc()':
snake_escaping.cpp:116:33: error: no matching function for call to 'getline(std::istream&, int [2000005])'
116 | string ss; getline(cin,s);
| ^
In file included from /usr/include/stdio.h:864,
from /usr/include/c++/10/cstdio:42,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:46,
from snake_escaping.cpp:9:
/usr/include/x86_64-linux-gnu/bits/stdio.h:118:1: note: candidate: '__ssize_t getline(char**, size_t*, FILE*)'
118 | getline (char **__lineptr, size_t *__n, FILE *__stream)
| ^~~~~~~
/usr/include/x86_64-linux-gnu/bits/stdio.h:118:1: note: candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/10/string:56,
from /usr/include/c++/10/bits/locale_classes.h:40,
from /usr/include/c++/10/bits/ios_base.h:41,
from /usr/include/c++/10/ios:42,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/sstream:38,
from /usr/include/c++/10/complex:45,
from /usr/include/c++/10/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
from snake_escaping.cpp:9:
/usr/include/c++/10/bits/basic_string.tcc:1548:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(std::basic_istream<_CharT, _Traits>&, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, _CharT)'
1548 | getline(basic_istream<_CharT, _Traits>& __in,
| ^~~~~~~
/usr/include/c++/10/bits/basic_string.tcc:1548:5: note: template argument deduction/substitution failed:
snake_escaping.cpp:116:33: note: mismatched types 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>' and 'int [2000005]'
116 | string ss; getline(cin,s);
| ^
In file included from /usr/include/c++/10/string:55,
from /usr/include/c++/10/bits/locale_classes.h:40,
from /usr/include/c++/10/bits/ios_base.h:41,
from /usr/include/c++/10/ios:42,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/sstream:38,
from /usr/include/c++/10/complex:45,
from /usr/include/c++/10/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
from snake_escaping.cpp:9:
/usr/include/c++/10/bits/basic_string.h:6498:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(std::basic_istream<_CharT, _Traits>&, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)'
6498 | getline(basic_istream<_CharT, _Traits>& __is,
| ^~~~~~~
/usr/include/c++/10/bits/basic_string.h:6498:5: note: template argument deduction/substitution failed:
snake_escaping.cpp:116:33: note: mismatched types 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>' and 'int [2000005]'
116 | string ss; getline(cin,s);
| ^
In file included from /usr/include/c++/10/string:55,
from /usr/include/c++/10/bits/locale_classes.h:40,
from /usr/include/c++/10/bits/ios_base.h:41,
from /usr/include/c++/10/ios:42,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/sstream:38,
from /usr/include/c++/10/complex:45,
from /usr/include/c++/10/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
from snake_escaping.cpp:9:
/usr/include/c++/10/bits/basic_string.h:6506:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(std::basic_istream<_CharT, _Traits>&&, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, _CharT)'
6506 | getline(basic_istream<_CharT, _Traits>&& __is,
| ^~~~~~~
/usr/include/c++/10/bits/basic_string.h:6506:5: note: template argument deduction/substitution failed:
snake_escaping.cpp:116:33: note: mismatched types 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>' and 'int [2000005]'
116 | string ss; getline(cin,s);
| ^
In file included from /usr/include/c++/10/string:55,
from /usr/include/c++/10/bits/locale_classes.h:40,
from /usr/include/c++/10/bits/ios_base.h:41,
from /usr/include/c++/10/ios:42,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/sstream:38,
from /usr/include/c++/10/complex:45,
from /usr/include/c++/10/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
from snake_escaping.cpp:9:
/usr/include/c++/10/bits/basic_string.h:6513:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(std::basic_istream<_CharT, _Traits>&&, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)'
6513 | getline(basic_istream<_CharT, _Traits>&& __is,
| ^~~~~~~
/usr/include/c++/10/bits/basic_string.h:6513:5: note: template argument deduction/substitution failed:
snake_escaping.cpp:116:33: note: mismatched types 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>' and 'int [2000005]'
116 | string ss; getline(cin,s);
| ^
snake_escaping.cpp: In function 'void setIO(std::string)':
snake_escaping.cpp:50:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
50 | freopen((inoutname+".in").c_str(),"r",stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
snake_escaping.cpp:51:13: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
51 | freopen((inoutname+".out").c_str(),"w",stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~