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_13613472_8346.cpp: In function 'int bfs()':
0_0_13613472_8346.cpp:76:31: error: no match for 'operator=' (operand types are 'std::map<int, int>' and 'std::deque<cond>::size_type {aka long long unsigned int}')
   in_layer_location[now_point]=layer_dp[now_cond.layer].size();
                               ^
0_0_13613472_8346.cpp:76:31: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61:0,
                 from 0_0_13613472_8346.cpp:8:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:293:7: note: std::map<_Key, _Tp, _Compare, _Alloc>& std::map<_Key, _Tp, _Compare, _Alloc>::operator=(const std::map<_Key, _Tp, _Compare, _Alloc>&) [with _Key = int; _Tp = int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >]
       operator=(const map& __x)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:293:7: note:   no known conversion for argument 1 from 'std::deque<cond>::size_type {aka long long unsigned int}' to 'const std::map<int, int>&'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:309:7: note: std::map<_Key, _Tp, _Compare, _Alloc>& std::map<_Key, _Tp, _Compare, _Alloc>::operator=(std::map<_Key, _Tp, _Compare, _Alloc>&&) [with _Key = int; _Tp = int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >]
       operator=(map&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:309:7: note:   no known conversion for argument 1 from 'std::deque<cond>::size_type {aka long long unsigned int}' to 'std::map<int, int>&&'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:335:7: note: std::map<_Key, _Tp, _Compare, _Alloc>& std::map<_Key, _Tp, _Compare, _Alloc>::operator=(std::initializer_list<std::pair<const _Key, _Tp> >) [with _Key = int; _Tp = int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >]
       operator=(initializer_list<value_type> __l)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:335:7: note:   no known conversion for argument 1 from 'std::deque<cond>::size_type {aka long long unsigned int}' to 'std::initializer_list<std::pair<const int, 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-26 16:39:05, Gzip enabled