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

501335_0_0_20829.cpp
501335_0_0_20829.cpp(5) : error C2065: “ans” : 未声明的标识符
501335_0_0_20829.cpp(5) : error C2593: “operator <<”不明确
        VC\include\ostream(434): 可能是“std::basic_ostream<_Elem,_Traits>::_Myt &std::basic_ostream<_Elem,_Traits>::operator <<(std::basic_ostream<_Elem,_Traits>::_Mysb *)”
        with
        [
            _Elem=char,
            _Traits=std::char_traits<char>
        ]
        VC\include\ostream(414): 或       “std::basic_ostream<_Elem,_Traits>::_Myt &std::basic_ostream<_Elem,_Traits>::operator <<(const void *)”
        with
        [
            _Elem=char,
            _Traits=std::char_traits<char>
        ]
        VC\include\ostream(394): 或       “std::basic_ostream<_Elem,_Traits>::_Myt &std::basic_ostream<_Elem,_Traits>::operator <<(long double)”
        with
        [
            _Elem=char,
            _Traits=std::char_traits<char>
        ]
        VC\include\ostream(374): 或       “std::basic_ostream<_Elem,_Traits>::_Myt &std::basic_ostream<_Elem,_Traits>::operator <<(double)”
        with
        [
            _Elem=char,
            _Traits=std::char_traits<char>
        ]
        VC\include\ostream(354): 或       “std::basic_ostream<_Elem,_Traits>::_Myt &std::basic_ostream<_Elem,_Traits>::operator <<(float)”
        with
        [
            _Elem=char,
            _Traits=std::char_traits<char>
        ]
        VC\include\ostream(333): 或       “std::basic_ostream<_Elem,_Traits>::_Myt &std::basic_ostream<_Elem,_Traits>::operator <<(unsigned __int64)”
        with
        [
            _Elem=char,
            _Traits=std::char_traits<char>
        ]
        VC\include\ostream(313): 或       “std::basic_ostream<_Elem,_Traits>::_Myt &std::basic_ostream<_Elem,_Traits>::operator <<(__int64)”
        with
        [
            _Elem=char,
            _Traits=std::char_traits<char>
        ]
        VC\include\ostream(292): 或       “std::basic_ostream<_Elem,_Traits>::_Myt &std::basic_ostream<_Elem,_Traits>::operator <<(unsigned long)”
        with
        [
            _Elem=char,
            _Traits=std::char_traits<char>
        ]
        VC\include\ostream(272): 或       “std::basic_ostream<_Elem,_Traits>::_Myt &std::basic_ostream<_Elem,_Traits>::operator <<(long)”
        with
        [
            _Elem=char,
            _Traits=std::char_traits<char>
        ]
        VC\include\ostream(252): 或       “std::basic_ostream<_Elem,_Traits>::_Myt &std::basic_ostream<_Elem,_Traits>::operator <<(unsigned int)”
        with
        [
            _Elem=char,
            _Traits=std::char_traits<char>
        ]
        VC\include\ostream(227): 或       “std::basic_ostream<_Elem,_Traits>::_Myt &std::basic_ostream<_Elem,_Traits>::operator <<(int)”
        with
        [
            _Elem=char,
            _Traits=std::char_traits<char>
        ]
        VC\include\ostream(207): 或       “std::basic_ostream<_Elem,_Traits>::_Myt &std::basic_ostream<_Elem,_Traits>::operator <<(unsigned short)”
        with
        [
            _Elem=char,
            _Traits=std::char_traits<char>
        ]
        VC\include\ostream(174): 或       “std::basic_ostream<_Elem,_Traits>::_Myt &std::basic_ostream<_Elem,_Traits>::operator <<(short)”
        with
        [
            _Elem=char,
            _Traits=std::char_traits<char>
        ]
        VC\include\ostream(154): 或       “std::basic_ostream<_Elem,_Traits>::_Myt &std::basic_ostream<_Elem,_Traits>::operator <<(std::_Bool)”
        with
        [
            _Elem=char,
            _Traits=std::char_traits<char>
        ]
        VC\include\ostream(148): 或       “std::basic_ostream<_Elem,_Traits>::_Myt &std::basic_ostream<_Elem,_Traits>::operator <<(std::ios_base &(__cdecl *)(std::ios_base &))”
        with
        [
            _Elem=char,
            _Traits=std::char_traits<char>
        ]
        VC\include\ostream(142): 或       “std::basic_ostream<_Elem,_Traits>::_Myt &std::basic_ostream<_Elem,_Traits>::operator <<(std::basic_ostream<_Elem,_Traits>::_Myios &(__cdecl *)(std::basic_ostream<_Elem,_Traits>::_Myios &))”
        with
        [
            _Elem=char,
            _Traits=std::char_traits<char>
        ]
        VC\include\ostream(137): 或       “std::basic_ostream<_Elem,_Traits>::_Myt &std::basic_ostream<_Elem,_Traits>::operator <<(std::basic_ostream<_Elem,_Traits>::_Myt &(__cdecl *)(std::basic_ostream<_Elem,_Traits>::_Myt &))”
        with
        [
            _Elem=char,
            _Traits=std::char_traits<char>
        ]
        VC\include\ostream(880): 或       “std::basic_ostream<_Elem,_Traits> &std::operator <<<std::char_traits<char>>(std::basic_ostream<_Elem,_Traits> &,const unsigned char *)”
        with
        [
            _Elem=char,
            _Traits=std::char_traits<char>
        ]
        VC\include\ostream(873): 或       “std::basic_ostream<_Elem,_Traits> &std::operator <<<std::char_traits<char>>(std::basic_ostream<_Elem,_Traits> &,signed char)”
        with
        [
            _Elem=char,
            _Traits=std::char_traits<char>
        ]
        VC\include\ostream(866): 或       “std::basic_ostream<_Elem,_Traits> &std::operator <<<std::char_traits<char>>(std::basic_ostream<_Elem,_Traits> &,const signed char *)”
        with
        [
            _Elem=char,
            _Traits=std::char_traits<char>
        ]
        VC\include\ostream(744): 或       “std::basic_ostream<_Elem,_Traits> &std::operator <<<std::char_traits<char>>(std::basic_ostream<_Elem,_Traits> &,char)”
        with
        [
            _Elem=char,
            _Traits=std::char_traits<char>
        ]
        VC\include\ostream(697): 或       “std::basic_ostream<_Elem,_Traits> &std::operator <<<std::char_traits<char>>(std::basic_ostream<_Elem,_Traits> &,const char *)”
        with
        [
            _Elem=char,
            _Traits=std::char_traits<char>
        ]
        VC\include\ostream(659): 或       “std::basic_ostream<_Elem,_Traits> &std::operator <<<char,std::char_traits<char>>(std::basic_ostream<_Elem,_Traits> &,char)”
        with
        [
            _Elem=char,
            _Traits=std::char_traits<char>
        ]
        VC\include\ostream(613): 或       “std::basic_ostream<_Elem,_Traits> &std::operator <<<char,std::char_traits<char>>(std::basic_ostream<_Elem,_Traits> &,const char *)”
        with
        [
            _Elem=char,
            _Traits=std::char_traits<char>
        ]
        VC\include\ostream(887): 或       “std::basic_ostream<_Elem,_Traits> &std::operator <<<std::char_traits<char>>(std::basic_ostream<_Elem,_Traits> &,unsigned char)”
        with
        [
            _Elem=char,
            _Traits=std::char_traits<char>
        ]
        试图匹配参数列表“(std::basic_ostream<_Elem,_Traits>::_Myt, 'unknown-type')”时
        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-23 09:43:26, Gzip enabled