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_28329062_8126.cpp: In function 'int main()':
0_0_28329062_8126.cpp:53:18: error: no match for 'operator==' (operand types are 'std::basic_ostream<char>::__ostream_type {aka std::basic_ostream<char>}' and 'bool')
         cout<<ans==true?"是":"没有"<<endl;
                  ^
0_0_28329062_8126.cpp:53:18: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:51:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
                 from 0_0_28329062_8126.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/random.tcc:2030:5: note: template<class _RealType1> bool std::operator==(const std::normal_distribution<_RealType>&, const std::normal_distribution<_RealType>&)
     operator==(const std::normal_distribution<_RealType>& __d1,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/random.tcc:2030:5: note:   template argument deduction/substitution failed:
0_0_28329062_8126.cpp:53:20: note:   'std::basic_ostream<char>::__ostream_type {aka std::basic_ostream<char>}' is not derived from 'const std::normal_distribution<_RealType>'
         cout<<ans==true?"是":"没有"<<endl;
                    ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:64:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/random.h:34,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:49,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
                 from 0_0_28329062_8126.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:1511:5: note: template<class _Tp, class _Alloc> bool std::operator==(const std::vector<_Tp, _Alloc>&, const std::vector<_Tp, _Alloc>&)
     operator==(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y)
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:1511:5: note:   template argument deduction/substitution failed:
0_0_28329062_8126.cpp:53:20: note:   'std::basic_ostream<char>::__ostream_type {aka std::basic_ostream<char>}' is not derived from 'const std::vector<_Tp, _Alloc>'
         cout<<ans==true?"是":"没有"<<endl;
                    ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/locale_facets.h:48:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_ios.h:37,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:44,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_28329062_8126.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/streambuf_iterator.h:204:5: note: template<class _CharT, class _Traits> bool std::operator==(const std::istreambuf_iterator<_CharT, _Traits>&, const std::istreambuf_iterator<_CharT, _Traits>&)
     operator==(const istreambuf_iterator<_CharT, _Traits>& __a,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/streambuf_iterator.h:204:5: note:   template argument deduction/substitution failed:
0_0_28329062_8126.cpp:53:20: note:   'std::basic_ostream<char>::__ostream_type {aka std::basic_ostream<char>}' is not derived from 'const std::istreambuf_iterator<_CharT, _Traits>'
         cout<<ans==true?"是":"没有"<<endl;
                    ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/locale_classes.h:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:41,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_28329062_8126.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2538:5: note: template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const std::basic_string<_CharT, _Traits, _Alloc>&, const _CharT*)
     operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2538:5: note:   template argument deduction/substitution failed:
0_0_28329062_8126.cpp:53:20: note:   'std::basic_ostream<char>::__ostream_type {aka std::basic_ostream<char>}' is not derived from 'const std::basic_string<_CharT, _Traits, _Alloc>'
         cout<<ans==true?"是":"没有"<<endl;
                    ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/locale_classes.h:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:41,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_28329062_8126.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2526:5: note: template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const _CharT*, const std::basic_string<_CharT, _Traits, _Alloc>&)
     operator==(const _CharT* __lhs,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2526:5: note:   template argument deduction/substitution failed:
0_0_28329062_8126.cpp:53:20: note:   mismatched types 'const _CharT*' and 'std::basic_ostream<char>'
         cout<<ans==true?"是":"没有"<<endl;
                    ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/locale_classes.h:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:41,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_28329062_8126.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2512:5: note: template<class _CharT> typename __gnu_cxx::__enable_if<std::__is_char<_Tp>::__value, bool>::__type std::operator==(const std::basic_string<_CharT>&, const std::basic_string<_CharT>&)
     operator==(const basic_string<_CharT>& __lhs,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2512:5: note:   template argument deduction/substitution failed:
0_0_28329062_8126.cpp:53:20: note:   'std::basic_ostream<char>::__ostream_type {aka std::basic_ostream<char>}' is not derived from 'const std::basic_string<_CharT>'
         cout<<ans==true?"是":"没有"<<endl;
                    ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/locale_classes.h:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:41,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_28329062_8126.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2505:5: note: template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const std::basic_string<_CharT, _Traits, _Alloc>&, const std::basic_string<_CharT, _Traits, _Alloc>&)
     operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2505:5: note:   template argument deduction/substitution failed:
0_0_28329062_8126.cpp:53:20: note:   'std::basic_ostream<char>::__ostream_type {aka std::basic_ostream<char>}' is not derived from 'const std::basic_string<_CharT, _Traits, _Alloc>'
         cout<<ans==true?"是":"没有"<<endl;
                    ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:41:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/locale_classes.h:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:41,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_28329062_8126.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/allocator.h:133:5: note: template<class _Tp> bool std::operator==(const std::allocator<_CharT>&, const std::allocator<_CharT>&)
     operator==(const allocator<_Tp>&, const allocator<_Tp>&)
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/allocator.h:133:5: note:   template argument deduction/substitution failed:
0_0_28329062_8126.cpp:53:20: note:   '


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-07-07 09:03:43, Gzip enabled