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_39711361_5730.cpp
VC2013\INCLUDE\xmemory0(600) : error C2664: “std::basic_string<char,std::char_traits<char>,std::allocator<char>>::basic_string(std::initializer_list<_Elem>,const std::allocator<char> &)”: 无法将参数 1 从“char”转换为“const std::basic_string<char,std::char_traits<char>,std::allocator<char>> &”
        with
        [
            _Elem=char
        ]
        原因如下:  无法从“char”转换为“const std::basic_string<char,std::char_traits<char>,std::allocator<char>>”
        无构造函数可以接受源类型,或构造函数重载决策不明确
        VC2013\INCLUDE\xmemory0(723): 参见对正在编译的函数 模板 实例化“void std::allocator<_Ty>::construct<_Objty,char&>(_Objty *,char &)”的引用
        with
        [
            _Ty=std::string
,            _Objty=std::basic_string<char,std::char_traits<char>,std::allocator<char>>
        ]
        VC2013\INCLUDE\xmemory0(723): 参见对正在编译的函数 模板 实例化“void std::allocator<_Ty>::construct<_Objty,char&>(_Objty *,char &)”的引用
        with
        [
            _Ty=std::string
,            _Objty=std::basic_string<char,std::char_traits<char>,std::allocator<char>>
        ]
        VC2013\INCLUDE\xmemory0(872): 参见对正在编译的函数 模板 实例化“void std::allocator_traits<_Alloc>::construct<_Ty,char&>(std::allocator<_Ty> &,_Objty *,char &)”的引用
        with
        [
            _Alloc=std::allocator<std::string>
,            _Ty=std::basic_string<char,std::char_traits<char>,std::allocator<char>>
,            _Objty=std::basic_string<char,std::char_traits<char>,std::allocator<char>>
        ]
        VC2013\INCLUDE\xmemory0(872): 参见对正在编译的函数 模板 实例化“void std::allocator_traits<_Alloc>::construct<_Ty,char&>(std::allocator<_Ty> &,_Objty *,char &)”的引用
        with
        [
            _Alloc=std::allocator<std::string>
,            _Ty=std::basic_string<char,std::char_traits<char>,std::allocator<char>>
,            _Objty=std::basic_string<char,std::char_traits<char>,std::allocator<char>>
        ]
        VC2013\INCLUDE\xmemory(378): 参见对正在编译的函数 模板 实例化“void std::_Wrap_alloc<std::allocator<_Ty>>::construct<std::basic_string<char,std::char_traits<char>,std::allocator<char>>,char&>(_Ty *,char &)”的引用
        with
        [
            _Ty=std::string
        ]
        VC2013\INCLUDE\xmemory(378): 参见对正在编译的函数 模板 实例化“void std::_Wrap_alloc<std::allocator<_Ty>>::construct<std::basic_string<char,std::char_traits<char>,std::allocator<char>>,char&>(_Ty *,char &)”的引用
        with
        [
            _Ty=std::string
        ]
        VC2013\INCLUDE\xmemory(416): 参见对正在编译的函数 模板 实例化“_FwdIt std::_Uninit_copy<_InIt,_FwdIt,std::allocator<_Ty>>(_InIt,_InIt,_FwdIt,std::_Wrap_alloc<std::allocator<_Ty>> &,std::_Nonscalar_ptr_iterator_tag)”的引用
        with
        [
            _FwdIt=std::basic_string<char,std::char_traits<char>,std::allocator<char>> *
,            _InIt=char *
,            _Ty=std::string
        ]
        VC2013\INCLUDE\xmemory(427): 参见对正在编译的函数 模板 实例化“_FwdIt std::_Uninit_copy<char*,_Iter,_Alloc>(_InIt,_InIt,_FwdIt,_Alloc &)”的引用
        with
        [
            _FwdIt=std::basic_string<char,std::char_traits<char>,std::allocator<char>> *
,            _Iter=std::basic_string<char,std::char_traits<char>,std::allocator<char>> *
,            _Alloc=std::_Wrap_alloc<std::allocator<std::string>>
,            _InIt=char *
        ]
        VC2013\INCLUDE\vector(1640): 参见对正在编译的函数 模板 实例化“_FwdIt std::_Uninitialized_copy<_Iter,std::basic_string<char,std::char_traits<char>,std::allocator<char>>*,std::_Wrap_alloc<std::allocator<_Ty>>>(_InIt,_InIt,_FwdIt,_Alloc &)”的引用
        with
        [
            _FwdIt=std::basic_string<char,std::char_traits<char>,std::allocator<char>> *
,            _Iter=std::_String_iterator<std::_String_val<std::_Simple_types<char>>>
,            _Ty=std::string
,            _InIt=std::_String_iterator<std::_String_val<std::_Simple_types<char>>>
,            _Alloc=std::_Wrap_alloc<std::allocator<std::string>>
        ]
        VC2013\INCLUDE\vector(789): 参见对正在编译的函数 模板 实例化“std::basic_string<char,std::char_traits<char>,std::allocator<char>> *std::vector<std::string,std::allocator<_Ty>>::_Ucopy<_Iter>(_Iter,_Iter,std::basic_string<char,std::char_traits<char>,std::allocator<char>> *)”的引用
        with
        [
            _Ty=std::string
,            _Iter=std::_String_iterator<std::_String_val<std::_Simple_types<char>>>
        ]
        VC2013\INCLUDE\vector(789): 参见对正在编译的函数 模板 实例化“std::basic_string<char,std::char_traits<char>,std::allocator<char>> *std::vector<std::string,std::allocator<_Ty>>::_Ucopy<_Iter>(_Iter,_Iter,std::basic_string<char,std::char_traits<char>,std::allocator<char>> *)”的引用
        with
        [
            _Ty=std::string
,            _Iter=std::_String_iterator<std::_String_val<std::_Simple_types<char>>>
        ]
        VC2013\INCLUDE\vector(766): 参见对正在编译的函数 模板 实例化“void std::vector<std::string,std::allocator<_Ty>>::_Construct<_Iter>(_Iter,_Iter,std::forward_iterator_tag)”的引用
        with
        [
            _Ty=std::string
,            _Iter=std::_String_iterator<std::_String_val<std::_Simple_types<char>>>
        ]
        VC2013\INCLUDE\vector(766): 参见对正在编译的函数 模板 实例化“void std::vector<std::string,std::allocator<_Ty>>::_Construct<_Iter>(_Iter,_Iter,std::forward_iterator_tag)”的引用
        with
        [
            _Ty=std::string
,            _Iter=std::_String_iterator<std::_String_val<std::_Simple_types<char>>>
        ]
        VC2013\INCLUDE\vector(751): 参见对正在编译的函数 模板 实例化“void std::vector<std::string,std::allocator<_Ty>>::_Construct<_Iter>(_Iter,_Iter)”的引用
        with
        [
            _Ty=std::string
,            _Iter=std::_String_iterator<std::_String_val<std::_Simple_types<char>>>
        ]
        VC2013\INCLUDE\vector(751): 参见对正在编译的函数 模板 实例化“void std::vector<std::string,std::allocator<_Ty>>::_Construct<_Iter>(_Iter,_Iter)”的引用
        with
        [
            _Ty=std::string
,            _Iter=std::_String_iterator<std::_String_val<std::_Simple_types<char>>>
        ]
        0_0_39711361_5730.cpp(30): 参见对正在编译的函数 模板 实例化“std::vector<std::string,std::allocator<_Ty>>::vector<std::_String_iterator<std::_String_val<std::_Simple_types<char>>>,void>(_Iter,_Iter)”的引用
        with
        [
            _Ty=std::string
,            _Iter=std::_String_iterator<std::_String_val<std::_Simple_types<char>>>
        ]
        0_0_39711361_5730.cpp(30): 参见对正在编译的函数 模板 实例化“std::vector<std::string,std::allocator<_Ty>>::vector<std::_String_iterator<std::_String_val<std::_Simple_types<char>>>,void>(_Iter,_Iter)”的引用
        with
        [
            _Ty=std::string
,            _Iter=std::_String_iterator<std::_String_val<std::_Simple_types<char>>>
        ]


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 07:41:16, Gzip enabled