Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:14:18: error: no matching function for call to 'std::basic_istream<char>::tie(bool)'
     cin.tie(false),cout.tie(false);
                  ^
In file included from /usr/include/c++/6/ios:44:0,
                 from /usr/include/c++/6/ostream:38,
                 from /usr/include/c++/6/iostream:39,
                 from /in/foo.cc:1:
/usr/include/c++/6/bits/basic_ios.h:295:7: note: candidate: std::basic_ostream<_CharT, _Traits>* std::basic_ios<_CharT, _Traits>::tie() const [with _CharT = char; _Traits = std::char_traits<char>]
       tie() const
       ^~~
/usr/include/c++/6/bits/basic_ios.h:295:7: note:   candidate expects 0 arguments, 1 provided
/usr/include/c++/6/bits/basic_ios.h:307:7: note: candidate: std::basic_ostream<_CharT, _Traits>* std::basic_ios<_CharT, _Traits>::tie(std::basic_ostream<_CharT, _Traits>*) [with _CharT = char; _Traits = std::char_traits<char>]
       tie(basic_ostream<_CharT, _Traits>* __tiestr)
       ^~~
/usr/include/c++/6/bits/basic_ios.h:307:7: note:   no known conversion for argument 1 from 'bool' to 'std::basic_ostream<char>*'
/in/foo.cc:14:34: error: no matching function for call to 'std::basic_ostream<char>::tie(bool)'
     cin.tie(false),cout.tie(false);
                                  ^
In file included from /usr/include/c++/6/ios:44:0,
                 from /usr/include/c++/6/ostream:38,
                 from /usr/include/c++/6/iostream:39,
                 from /in/foo.cc:1:
/usr/include/c++/6/bits/basic_ios.h:295:7: note: candidate: std::basic_ostream<_CharT, _Traits>* std::basic_ios<_CharT, _Traits>::tie() const [with _CharT = char; _Traits = std::char_traits<char>]
       tie() const
       ^~~
/usr/include/c++/6/bits/basic_ios.h:295:7: note:   candidate expects 0 arguments, 1 provided
/usr/include/c++/6/bits/basic_ios.h:307:7: note: candidate: std::basic_ostream<_CharT, _Traits>* std::basic_ios<_CharT, _Traits>::tie(std::basic_ostream<_CharT, _Traits>*) [with _CharT = char; _Traits = std::char_traits<char>]
       tie(basic_ostream<_CharT, _Traits>* __tiestr)
       ^~~
/usr/include/c++/6/bits/basic_ios.h:307:7: note:   no known conversion for argument 1 from 'bool' to 'std::basic_ostream<char>*'

信息

递交者
类型
递交
题目
「一本通 2.1 练习 2」Seekthe Name, Seek the Fame
语言
C++
递交时间
2019-08-28 16:47:20
评测时间
2019-08-28 16:47:20
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes