Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
Re:在vs2008上测试所有数据没有问题,提交后却编译失败,刚刚接触C++,麻烦大家看一下,谢谢In Reply To:在vs2008上测试所有数据没有问题,提交后却编译失败,刚刚接触C++,麻烦大家看一下,谢谢 Posted by:deking at 2008-05-01 02:15:29 这是错误信息 Main.cpp Main.cpp(24) : error C2558: class 'super_figure' : no copy constructor available or copy constructor is declared 'explicit' Main.cpp(129) : error C2678: binary '*' : no operator found which takes a left-hand operand of type 'super_figure' (or there is no acceptable conversion); Main.cpp(13): could be 'super_figure operator *(super_figure &,super_figure &)' [found using argument-dependent lookup]; Main.cpp(13): or 'super_figure operator *(super_figure &,super_figure &)' [found using argument-dependent lookup]; while trying to match the argument list '(super_figure, super_figure)' Main.cpp(185) : error C2679: binary '=' : no operator found which takes a right-hand operand of type 'super_figure' (or there is no acceptable conversion); Main.cpp(10): could be 'super_figure super_figure::operator =(std::string)'; Main.cpp(11): or 'super_figure super_figure::operator =(super_figure &)'; while trying to match the argument list '(super_figure, super_figure)' Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator