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_32240641_11006.cpp: In function 'int main()':
0_0_32240641_11006.cpp:32:19: error: no match for 'operator==' (operand types are 'std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}' and 'int')
  while((cin>>n>>m)==2){
                   ^
0_0_32240641_11006.cpp:32:19: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:64:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/deque:60,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:60,
                 from 0_0_32240641_11006.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:214:5: note: template<class _T1, class _T2> constexpr bool std::operator==(const std::pair<_T1, _T2>&, const std::pair<_T1, _T2>&)
     operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:214:5: note:   template argument deduction/substitution failed:
0_0_32240641_11006.cpp:32:21: note:   'std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}' is not derived from 'const std::pair<_T1, _T2>'
  while((cin>>n>>m)==2){
                     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:67:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/deque:60,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:60,
                 from 0_0_32240641_11006.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:292:5: note: template<class _Iterator> bool std::operator==(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_Iterator>&)
     operator==(const reverse_iterator<_Iterator>& __x,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:292:5: note:   template argument deduction/substitution failed:
0_0_32240641_11006.cpp:32:21: note:   'std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}' is not derived from 'const std::reverse_iterator<_Iterator>'
  while((cin>>n>>m)==2){
                     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:67:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/deque:60,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:60,
                 from 0_0_32240641_11006.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:342:5: note: template<class _IteratorL, class _IteratorR> bool std::operator==(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_IteratorR>&)
     operator==(const reverse_iterator<_IteratorL>& __x,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:342:5: note:   template argument deduction/substitution failed:
0_0_32240641_11006.cpp:32:21: note:   'std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}' is not derived from 'const std::reverse_iterator<_Iterator>'
  while((cin>>n>>m)==2){
                     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:67:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/deque:60,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:60,
                 from 0_0_32240641_11006.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:1048:5: note: template<class _IteratorL, class _IteratorR> bool std::operator==(const std::move_iterator<_Iterator>&, const std::move_iterator<_IteratorR>&)
     operator==(const move_iterator<_IteratorL>& __x,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:1048:5: note:   template argument deduction/substitution failed:
0_0_32240641_11006.cpp:32:21: note:   'std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}' is not derived from 'const std::move_iterator<_Iterator>'
  while((cin>>n>>m)==2){
                     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:67:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/deque:60,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:60,
                 from 0_0_32240641_11006.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:1054:5: note: template<class _Iterator> bool std::operator==(const std::move_iterator<_Iterator>&, const std::move_iterator<_Iterator>&)
     operator==(const move_iterator<_Iterator>& __x,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:1054:5: note:   template argument deduction/substitution failed:
0_0_32240641_11006.cpp:32:21: note:   'std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}' is not derived from 'const std::move_iterator<_Iterator>'
  while((cin>>n>>m)==2){
                     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/deque:61:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:60,
                 from 0_0_32240641_11006.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/allocator.h:128:5: note: template<class _T1, class _T2> bool std::operator==(const std::allocator<_Tp1>&, const std::allocator<_T2>&)
     operator==(const allocator<_T1>&, const allocator<_T2>&)
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/allocator.h:128:5: note:   template argument deduction/substitution failed:
0_0_32240641_11006.cpp:32:21: note:   'std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}' is not derived from 'const std::allocator<_Tp1>'
  while((cin>>n>>m)==2){
                     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/deque:61:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:60,
                 from 0_0_32240641_11006.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<_Tp1>&, const std::allocator<_Tp1>&)
     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_32240641_11006.cpp:32:21: note:   'std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}' is not derived from 'const std::allocator<_Tp1>'
  while((cin>>n>>m)==2){
                     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/deque:64:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:60,
                 from 0_0_32240641_11006.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:251:5: note: template<class _Tp, class _Ref, class _Ptr> bool std::operator==(const std::_Deque_iterator<_Tp, _Ref, _Ptr>&, const std::_Deque_iterator<_Tp, _Ref, _Ptr>&)
     operator==(const _Deque_iterator<_Tp, _Ref, _Ptr>& __x,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:251:5: note:   template argument deduction/substitution failed:
0_0_32240641_11006.cpp:32:21: note:   'std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}' is not derived from 'const std::_Deque_iterator<_Tp, _Ref, _Ptr>'
  while((cin>>n>>m)==2){
                     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/deque:64:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:60,
                 from 0_0_32240641_11006.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:258:5: note: template<class _Tp, class _RefL, class _PtrL, class _RefR, class _PtrR> bool std::operator==(const std::_Deque_iterator<_Tp, _Ref, _Ptr>&, const std::_Deque_iterator<_Tp, _RefR, _PtrR>&)
     operator==(const _Deque_iterator<_Tp, _RefL, _PtrL>& __x,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:258:5: note:   template argument deduction/substitution failed:
0_0_32240641_11006.cpp:32:21: note:   'std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}' is not derived from 'const std::_Deque_iterator<_Tp, _Ref, _Ptr>'
  while((cin>>n>>m)==2){
                     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/deque:64:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:60,
                 from 0_0_32240641_11006.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:2029:5: note: template<class _Tp, class _Alloc> bool std::operator==(const std::deque<_Tp, _Alloc>&, const std::deque<_Tp, _Alloc>&)
     operator==(const deque<_Tp, _Alloc>& __x,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:2029:5: note:   template argument deduction/substitution failed:
0_0_32240641_11006.cpp:32:21: note:   'std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}' is not derived from 'const std::deque<_Tp, _Alloc>'
  while((cin>>n>>m)==2){
                     ^
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++/queue:61,
                 from 0_0_32240641_11006.cpp:1:
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<


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-03 16:17:49, Gzip enabled