383614_0_0_19685.cpp
383614_0_0_19685.cpp(7) : error C2065: “sum” : 未声明的标识符
383614_0_0_19685.cpp(11) : error C3861: “sum”: 即使使用参数相关的查找,也未找到标识符
383614_0_0_19685.cpp(14) : 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(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>
]
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>
]
试图匹配参数列表“(std::ostream, 'unknown-type')”时
383614_0_0_19685.cpp(14) : error C3861: “sum”: 即使使用参数相关的查找,也未找到标识符
|