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_2861022_11080.cpp
VC\include\vector(357) : error C2664: “std::vector<_Ty>::_Construct_n” : 不能将参数 2 从“int”转换为“People *const & ”
        with
        [
            _Ty=People *
        ]
        原因如下: 无法从“int”转换为“People *const ”
        从整型转换为指针类型要求 reinterpret_cast、C 样式转换或函数样式转换
        VC\include\vector(343) : 参见对正在编译的函数模板实例化“void std::vector<_Ty>::_Construct<_Iter>(_Iter,_Iter,std::_Int_iterator_tag)”的引用
        with
        [
            _Ty=People *,
            _Iter=int
        ]
        0_0_2861022_11080.cpp(147) : 参见对正在编译的函数模板实例化“std::vector<_Ty>::vector<int>(_Iter,_Iter)”的引用
        with
        [
            _Ty=People *,
            _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-11-20 13:20:27, Gzip enabled