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

502902_0_0_13444.cpp
502902_0_0_13444.cpp(9) : error C2475: “std::basic_istream<_Elem,_Traits>::getline” : 构造一个指向成员的指针需要显式使用 address-of 运算符('&')和限定名
        with
        [
            _Elem=char,
            _Traits=std::char_traits<char>
        ]
502902_0_0_13444.cpp(9) : error C2440: “=” : 无法从“overloaded-function”转换为“std::string”
502902_0_0_13444.cpp(9) : error C2593: “operator =”不明确
        VC\include\xstring(475): 可能是“std::basic_string<_Elem,_Traits,_Ax>::_Myt &std::basic_string<_Elem,_Traits,_Ax>::operator =(_Elem)”
        with
        [
            _Elem=char,
            _Traits=std::char_traits<char>,
            _Ax=std::allocator<char>
        ]
        VC\include\xstring(470): 或       “std::basic_string<_Elem,_Traits,_Ax>::_Myt &std::basic_string<_Elem,_Traits,_Ax>::operator =(const _Elem *)”
        with
        [
            _Elem=char,
            _Traits=std::char_traits<char>,
            _Ax=std::allocator<char>
        ]
        试图匹配参数列表“(std::string, int)”时
502902_0_0_13444.cpp(16) : error C2661: “std::basic_istream<_Elem,_Traits>::getline” : 没有重载函数接受 0 个参数
        with
        [
            _Elem=char,
            _Traits=std::char_traits<char>
        ]
502902_0_0_13444.cpp(28) : error C2661: “std::basic_istream<_Elem,_Traits>::getline” : 没有重载函数接受 0 个参数
        with
        [
            _Elem=char,
            _Traits=std::char_traits<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-19 22:27:24, Gzip enabled