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_6097201_11101.cpp
0_0_6097201_11101.cpp(16) : error C2664: “std::_Tree<_Traits>::count” : 不能将参数 1 从“std::map<_Kty,_Ty>::mapped_type”转换为“const std::_Tree<_Traits>::key_type &”
        with
        [
            _Traits=std::_Tmap_traits<int,std::string,std::less<int>,std::allocator<std::pair<const int,std::string>>,false>
        ]
        and
        [
            _Kty=int,
            _Ty=std::string
        ]
        and
        [
            _Traits=std::_Tmap_traits<int,std::string,std::less<int>,std::allocator<std::pair<const int,std::string>>,false>
        ]
        原因如下: 无法从“std::map<_Kty,_Ty>::mapped_type”转换为“const std::_Tree<_Traits>::key_type”
        with
        [
            _Kty=int,
            _Ty=std::string
        ]
        and
        [
            _Traits=std::_Tmap_traits<int,std::string,std::less<int>,std::allocator<std::pair<const int,std::string>>,false>
        ]
        没有可用于执行该转换的用户定义的转换运算符,或者无法调用该运算符
0_0_6097201_11101.cpp(16) : error C2664: “std::_Tree<_Traits>::count” : 不能将参数 1 从“std::map<_Kty,_Ty>::mapped_type”转换为“const std::_Tree<_Traits>::key_type &”
        with
        [
            _Traits=std::_Tmap_traits<int,std::string,std::less<int>,std::allocator<std::pair<const int,std::string>>,false>
        ]
        and
        [
            _Kty=int,
            _Ty=std::string
        ]
        and
        [
            _Traits=std::_Tmap_traits<int,std::string,std::less<int>,std::allocator<std::pair<const int,std::string>>,false>
        ]
        原因如下: 无法从“std::map<_Kty,_Ty>::mapped_type”转换为“const std::_Tree<_Traits>::key_type”
        with
        [
            _Kty=int,
            _Ty=std::string
        ]
        and
        [
            _Traits=std::_Tmap_traits<int,std::string,std::less<int>,std::allocator<std::pair<const int,std::string>>,false>
        ]
        没有可用于执行该转换的用户定义的转换运算符,或者无法调用该运算符


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-30 15:33:04, Gzip enabled