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_25583192_25603.cpp: In function 'void print()':
0_0_25583192_25603.cpp:19:42: error: conversion from 'std::deque<int>::iterator {aka std::_Deque_iterator<int, int&, int*>}' to non-scalar type 'std::deque<long long int>::iterator {aka std::_Deque_iterator<long long int, long long int&, long long int*>}' requested
     for(deque<ll>::iterator i = dq.begin();i!=dq.end();i++)
                                          ^
0_0_25583192_25603.cpp:19:45: error: no match for 'operator!=' (operand types are 'std::deque<long long int>::iterator {aka std::_Deque_iterator<long long int, long long int&, long long int*>}' and 'std::deque<int>::iterator {aka std::_Deque_iterator<int, int&, int*>}')
     for(deque<ll>::iterator i = dq.begin();i!=dq.end();i++)
                                             ^
0_0_25583192_25603.cpp:19:45: 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++/vector:60,
                 from 0_0_25583192_25603.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:227: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:227:5: note:   template argument deduction/substitution failed:
0_0_25583192_25603.cpp:19:54: note:   'std::deque<long long int>::iterator {aka std::_Deque_iterator<long long int, long long int&, long long int*>}' is not derived from 'const std::pair<_T1, _T2>'
     for(deque<ll>::iterator i = dq.begin();i!=dq.end();i++)
                                                      ^
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++/vector:60,
                 from 0_0_25583192_25603.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:304: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:304:5: note:   template argument deduction/substitution failed:
0_0_25583192_25603.cpp:19:54: note:   'std::deque<long long int>::iterator {aka std::_Deque_iterator<long long int, long long int&, long long int*>}' is not derived from 'const std::reverse_iterator<_Iterator>'
     for(deque<ll>::iterator i = dq.begin();i!=dq.end();i++)
                                                      ^
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++/vector:60,
                 from 0_0_25583192_25603.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:354: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:354:5: note:   template argument deduction/substitution failed:
0_0_25583192_25603.cpp:19:54: note:   'std::deque<long long int>::iterator {aka std::_Deque_iterator<long long int, long long int&, long long int*>}' is not derived from 'const std::reverse_iterator<_Iterator>'
     for(deque<ll>::iterator i = dq.begin();i!=dq.end();i++)
                                                      ^
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++/vector:60,
                 from 0_0_25583192_25603.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:1060: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:1060:5: note:   template argument deduction/substitution failed:
0_0_25583192_25603.cpp:19:54: note:   'std::deque<long long int>::iterator {aka std::_Deque_iterator<long long int, long long int&, long long int*>}' is not derived from 'const std::move_iterator<_Iterator>'
     for(deque<ll>::iterator i = dq.begin();i!=dq.end();i++)
                                                      ^
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++/vector:60,
                 from 0_0_25583192_25603.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:1066: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:1066:5: note:   template argument deduction/substitution failed:
0_0_25583192_25603.cpp:19:54: note:   'std::deque<long long int>::iterator {aka std::_Deque_iterator<long long int, long long int&, long long int*>}' is not derived from 'const std::move_iterator<_Iterator>'
     for(deque<ll>::iterator i = dq.begin();i!=dq.end();i++)
                                                      ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:61:0,
                 from 0_0_25583192_25603.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/allocator.h:138: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:138:5: note:   template argument deduction/substitution failed:
0_0_25583192_25603.cpp:19:54: note:   'std::deque<long long int>::iterator {aka std::_Deque_iterator<long long int, long long int&, long long int*>}' is not derived from 'const std::allocator<_Tp1>'
     for(deque<ll>::iterator i = dq.begin();i!=dq.end();i++)
                                                      ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:61:0,
                 from 0_0_25583192_25603.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/allocator.h:143: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:143:5: note:   template argument deduction/substitution failed:
0_0_25583192_25603.cpp:19:54: note:   'std::deque<long long int>::iterator {aka std::_Deque_iterator<long long int, long long int&, long long int*>}' is not derived from 'const std::allocator<_Tp1>'
     for(deque<ll>::iterator i = dq.begin();i!=dq.end();i++)
                                                      ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:64:0,
                 from 0_0_25583192_25603.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:1535: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:1535:5: note:   template argument deduction/substitution failed:
0_0_25583192_25603.cpp:19:54: note:   'std::deque<long long int>::iterator {aka std::_Deque_iterator<long long int, long long int&, long long int*>}' is not derived from 'const std::vector<_Tp, _Alloc>'
     for(deque<ll>::iterator i = dq.begin();i!=dq.end();i++)
                                                      ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/set:60:0,
                 from 0_0_25583192_25603.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_tree.h:329:5: note: template<class _Val> bool std::operator!=(const std::_Rb_tree_iterator<_Tp>&, const std::_Rb_tree_const_iterator<_Val>&)
     operator!=(const _Rb_tree_iterator<_Val>& __x,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_tree.h:329:5: note:   template argument deduction/substitution failed:
0_0_25583192_25603.cpp:19:54: note:   'std::deque<long long int>::iterator {aka std::_Deque_iterator<long long int, long long int&, long long int*>}' is not derived from 'const std::_Rb_tree_iterator<_Tp>'
     for(deque<ll>::iterator i = dq.begin();i!=dq.end();i++)
                                                      ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/set:60:0,
                 from 0_0_25583192_25603.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_tree.h:990:5: note: template<class _Key, class _Val, class _KeyOfValue, class _Compare, class _Alloc> bool std::operator!=(const std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>&, const std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>&)
     operator!=(const _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __x,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_tree.h:990:5: note:   template argument deduction/su


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-11-25 02:25:21, Gzip enabled