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_36506737_12737.cpp
0_0_36506737_12737.cpp(26) : error C2679: 二进制“[”: 没有找到接受“char”类型的右操作数的运算符(或没有可接受的转换)
        VC2013\INCLUDE\map(224): 可能是“int &std::map<std::string,int,std::less<_Kty>,std::allocator<std::pair<const _Kty,_Ty>>>::operator [](const std::basic_string<char,std::char_traits<char>,std::allocator<char>> &)”
        with
        [
            _Kty=std::string
,            _Ty=int
        ]
        VC2013\INCLUDE\map(172): 或       “int &std::map<std::string,int,std::less<_Kty>,std::allocator<std::pair<const _Kty,_Ty>>>::operator [](std::basic_string<char,std::char_traits<char>,std::allocator<char>> &&)”
        with
        [
            _Kty=std::string
,            _Ty=int
        ]
        尝试匹配参数列表“(std::map<std::string,int,std::less<_Kty>,std::allocator<std::pair<const _Kty,_Ty>>>, char)”时
        with
        [
            _Kty=std::string
,            _Ty=int
        ]
0_0_36506737_12737.cpp(30) : error C2679: 二进制“[”: 没有找到接受“char”类型的右操作数的运算符(或没有可接受的转换)
        VC2013\INCLUDE\map(224): 可能是“int &std::map<std::string,int,std::less<_Kty>,std::allocator<std::pair<const _Kty,_Ty>>>::operator [](const std::basic_string<char,std::char_traits<char>,std::allocator<char>> &)”
        with
        [
            _Kty=std::string
,            _Ty=int
        ]
        VC2013\INCLUDE\map(172): 或       “int &std::map<std::string,int,std::less<_Kty>,std::allocator<std::pair<const _Kty,_Ty>>>::operator [](std::basic_string<char,std::char_traits<char>,std::allocator<char>> &&)”
        with
        [
            _Kty=std::string
,            _Ty=int
        ]
        尝试匹配参数列表“(std::map<std::string,int,std::less<_Kty>,std::allocator<std::pair<const _Kty,_Ty>>>, char)”时
        with
        [
            _Kty=std::string
,            _Ty=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-29 17:26:30, Gzip enabled