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_5079225_10787.cpp
VC\include\vector(357) : error C2664: “std::vector<_Ty>::_Construct_n” : 不能将参数 2 从“int”转换为“const std::vector<_Ty> &”
        with
        [
            _Ty=std::vector<char>
        ]
        and
        [
            _Ty=char
        ]
        原因如下: 无法从“int”转换为“const std::vector<_Ty>”
        with
        [
            _Ty=char
        ]
        class“std::vector<_Ty>”的构造函数声明为“explicit”
        with
        [
            _Ty=char
        ]
        VC\include\vector(343) : 参见对正在编译的函数模板实例化“void std::vector<_Ty>::_Construct<_Iter>(_Iter,_Iter,std::_Int_iterator_tag)”的引用
        with
        [
            _Ty=std::vector<char>,
            _Iter=int
        ]
        0_0_5079225_10787.cpp(12) : 参见对正在编译的函数模板实例化“std::vector<_Ty>::vector<int>(_Iter,_Iter)”的引用
        with
        [
            _Ty=std::vector<char>,
            _Iter=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-12-02 03:36:13, Gzip enabled