Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

Re:在vs2008上测试所有数据没有问题,提交后却编译失败,刚刚接触C++,麻烦大家看一下,谢谢

Posted by deking at 2008-05-01 02:42:30 on Problem 1001
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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator