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_36528853_12818.cpp: In function 'void pushUp(int)':
0_0_36528853_12818.cpp:58:15: error: no match for 'operator=' (operand types are 'std::deque<int>' and 'std::deque<long long int>')
     tree[p].a = tmp;
               ^
0_0_36528853_12818.cpp:58:15: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/deque:66:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:67,
                 from 0_0_36528853_12818.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/deque.tcc:92:5: note: std::deque<_Tp, _Alloc>& std::deque<_Tp, _Alloc>::operator=(const std::deque<_Tp, _Alloc>&) [with _Tp = int; _Alloc = std::allocator<int>]
     deque<_Tp, _Alloc>::
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/deque.tcc:92:5: note:   no known conversion for argument 1 from 'std::deque<long long int>' to 'const std::deque<int>&'
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++/x86_64-w64-mingw32/bits/stdc++.h:67,
                 from 0_0_36528853_12818.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:944:7: note: std::deque<_Tp, _Alloc>& std::deque<_Tp, _Alloc>::operator=(std::deque<_Tp, _Alloc>&&) [with _Tp = int; _Alloc = std::allocator<int>]
       operator=(deque&& __x) noexcept
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:944:7: note:   no known conversion for argument 1 from 'std::deque<long long int>' to 'std::deque<int>&&'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:965:7: note: std::deque<_Tp, _Alloc>& std::deque<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = int; _Alloc = std::allocator<int>]
       operator=(initializer_list<value_type> __l)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:965:7: note:   no known conversion for argument 1 from 'std::deque<long long int>' to 'std::initializer_list<int>'


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-23 09:38:13, Gzip enabled