Problem sadtrainer2
User HighLithop
Submission Time 2026-04-30 00:27:50
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sadtrainer2.cpp: In function ‘int main()’:
sadtrainer2.cpp:86:29: error: cannot bind non-const lvalue reference of type ‘std::string&’ {aka ‘std::__cxx11::basic_string<char>&’} to an rvalue of type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’}
86 | fast_output("No\n");
| ^~~~~~
In file included from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from sadtrainer2.cpp:1:
/usr/include/c++/9/bits/basic_string.h:529:7: note: after user-defined conversion: ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with <template-parameter-2-1> = std::alloc