F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_38715267_21948.cpp: In function 'int main()':
0_0_38715267_21948.cpp:330:10: error: no match for 'operator<<' (operand types are 'fastIO' and '<unresolved overloaded function type>')
  330 |     cout << endl;
      |          ^
0_0_38715267_21948.cpp:275:61: note: candidate: 'template<class any> typename std::enable_if<(((std::is_signed<_Tp>::value && std::is_integral<_Tp>::value) && (! std::is_same<_Tp, char>::value)) || std::is_same<_Tp, __int128>::value), fastIO>::type& fastIO::operator<<(any)'
  275 |             is_same<any, __int128_t>::value, fastIO>::type &operator<<(any t) {
      |                                                             ^~~~~~~~
0_0_38715267_21948.cpp:275:61: note:   template argument deduction/substitution failed:
0_0_38715267_21948.cpp:330:13: note:   couldn't deduce template parameter 'any'
  330 |     cout << endl;
      |             ^~~~
0_0_38715267_21948.cpp:290:62: note: candidate: 'template<class any> typename std::enable_if<(((std::is_unsigned<_Tp>::value && std::is_integral<_Tp>::value) && (! std::is_same<_Tp, char>::value)) || std::is_same<_Tp, __int128 unsigned>::value), fastIO>::type& fastIO::operator<<(any)'
  290 |             is_same<any, __uint128_t>::value, fastIO>::type &operator<<(any t) {
      |                                                              ^~~~~~~~
0_0_38715267_21948.cpp:290:62: note:   template argument deduction/substitution failed:
0_0_38715267_21948.cpp:330:13: note:   couldn't deduce template parameter 'any'
  330 |     cout << endl;
      |             ^~~~
0_0_38715267_21948.cpp:302:13: note: candidate: 'template<class any1, class any2> fastIO& fastIO::operator<<(const std::pair<_T1, _T2>&)'
  302 |     fastIO &operator<<(const pair<any1, any2> &t) { return *this << t.first << ' ' << t.second; }
      |             ^~~~~~~~
0_0_38715267_21948.cpp:302:13: note:   template argument deduction/substitution failed:
0_0_38715267_21948.cpp:330:13: note:   couldn't deduce template parameter 'any1'
  330 |     cout << endl;
      |             ^~~~
0_0_38715267_21948.cpp:257:13: note: candidate: 'fastIO& fastIO::operator<<(char)'
  257 |     fastIO &operator<<(const char t) {
      |             ^~~~~~~~
0_0_38715267_21948.cpp:257:35: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'char'
  257 |     fastIO &operator<<(const char t) {
      |                        ~~~~~~~~~~~^
0_0_38715267_21948.cpp:262:13: note: candidate: 'fastIO& fastIO::operator<<(const char*)'
  262 |     fastIO &operator<<(const char *t) {
      |             ^~~~~~~~
0_0_38715267_21948.cpp:262:36: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'const char*'
  262 |     fastIO &operator<<(const char *t) {
      |                        ~~~~~~~~~~~~^
0_0_38715267_21948.cpp:267:13: note: candidate: 'fastIO& fastIO::operator<<(const std::string&)'
  267 |     fastIO &operator<<(const string &t) {
      |             ^~~~~~~~
0_0_38715267_21948.cpp:267:38: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'const std::string&' {aka 'const std::__cxx11::basic_string<char>&'}
  267 |     fastIO &operator<<(const string &t) {
      |                        ~~~~~~~~~~~~~~^
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/regex:68,
                 from .\stdc++.h:181:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/regex.h:1715:5: note: candidate: 'template<class _Ch_type, class _Ch_traits, class _Bi_iter> std::basic_ostream<_CharT, _Traits>& std::__cxx11::operator<<(std::basic_ostream<_CharT, _Traits>&, const sub_match<_Bi_iter>&)'
 1715 |     operator<<(basic_ostream<_Ch_type, _Ch_traits>& __os,
      |     ^~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/regex.h:1715:5: note:   template argument deduction/substitution failed:
0_0_38715267_21948.cpp:330:13: note:   'fastIO' is not derived from 'std::basic_ostream<_CharT, _Traits>'
  330 |     cout << endl;
      |             ^~~~
In file included from .\stdc++.h:41:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/cstddef:124:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator<<(byte, _IntegerType)'
  124 |     operator<<(byte __b, _IntegerType __shift) noexcept
      |     ^~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/cstddef:124:5: note:   template argument deduction/substitution failed:
0_0_38715267_21948.cpp:330:13: note:   couldn't deduce template parameter '_IntegerType'
  330 |     cout << endl;
      |             ^~~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/basic_string.h:47,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/string:54,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bitset:52,
                 from .\stdc++.h:52:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/string_view:760:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, basic_string_view<_CharT, _Traits>)'
  760 |     operator<<(basic_ostream<_CharT, _Traits>& __os,
      |     ^~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/string_view:760:5: note:   template argument deduction/substitution failed:
0_0_38715267_21948.cpp:330:13: note:   'fastIO' is not derived from 'std::basic_ostream<_CharT, _Traits>'
  330 |     cout << endl;
      |             ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/basic_string.h:4031:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
 4031 |     operator<<(basic_ostream<_CharT, _Traits>& __os,
      |     ^~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/basic_string.h:4031:5: note:   template argument deduction/substitution failed:
0_0_38715267_21948.cpp:330:13: note:   'fastIO' is not derived from 'std::basic_ostream<_CharT, _Traits>'
  330 |     cout << endl;
      |             ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bitset:1683:5: note: candidate: 'template<class _CharT, class _Traits, long long unsigned int _Nb> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const bitset<_Nb>&)'
 1683 |     operator<<(std::basic_ostream<_CharT, _Traits>& __os,
      |     ^~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bitset:1683:5: note:   template argument deduction/substitution failed:
0_0_38715267_21948.cpp:330:13: note:   'fastIO' is not derived from 'std::basic_ostream<_CharT, _Traits>'
  330 |     cout << endl;
      |             ^~~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ios_base.h:46,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/streambuf:43,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/streambuf_iterator.h:35,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/iterator:66,
                 from .\stdc++.h:54:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/system_error:339:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const error_code&)'
  339 |     operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e)
      |     ^~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/system_error:339:5: note:   template argument deduction/substitution failed:
0_0_38715267_21948.cpp:330:13: note:   'fastIO' is not derived from 'std::basic_ostream<_CharT, _Traits>'
  330 |     cout << endl;
      |             ^~~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/unique_ptr.h:42,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/memory:78,
                 from .\stdc++.h:56:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ostream:554:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, _CharT)'
  554 |     operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c)
      |     ^~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ostream:554:5: note:   template argument deduction/substitution failed:
0_0_38715267_21948.cpp:330:13: note:   'fastIO' is not derived from 'std::basic_ostream<_CharT, _Traits>'
  330 |     cout << endl;
      |             ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ostream:564:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, char)'
  564 |     operator<<(basic_ostream<_CharT, _Traits>& __out, char __c)
      |     ^~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ostream:564:5: note:   template argument deduction/substitution failed:
0_0_38715267_21948.cpp:330:13: note:   'fastIO' is not derived from 'std::basic_ostream<_CharT, _Traits>'
  330 |     cout << endl;
      |             ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ostream:570:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-06-29 10:06:14, Gzip enabled