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:以前写的那个高精度类今天派上大用场了。。。

Posted by huangkun at 2007-09-29 12:41:23
In Reply To:Re:以前写的那个高精度类今天派上大用场了。。。 Posted by:TheBeet at 2007-09-29 12:27:45
我的高精度就没有派上用场

\\temp\\Main.cpp: In member function `HugeInt HugeInt::operator+(int)':
\\temp\\Main.cpp:114: error: no match for 'operator+' in '*(HugeInt*)this + HugeInt(((long int)op1))'
\\temp\\Main.cpp:94: note: candidates are: HugeInt HugeInt::operator+(HugeInt&)
\\temp\\Main.cpp:113: note:                 HugeInt HugeInt::operator+(int)
\\temp\\Main.cpp: In member function `HugeInt HugeInt::operator-(int)':
\\temp\\Main.cpp:141: error: no match for 'operator-' in '*(HugeInt*)this - HugeInt(((long int)op1))'
\\temp\\Main.cpp:140: note: candidates are: HugeInt HugeInt::operator-(int)
\\temp\\Main.cpp:117: note:                 HugeInt HugeInt::operator-(HugeInt&)
\\temp\\Main.cpp: In member function `HugeInt HugeInt::operator*(int)':
\\temp\\Main.cpp:165: error: no match for 'operator*' in '*(HugeInt*)this * HugeInt(((long int)op1))'
\\temp\\Main.cpp:164: note: candidates are: HugeInt HugeInt::operator*(int)
\\temp\\Main.cpp:144: note:                 HugeInt HugeInt::operator*(HugeInt&)
\\temp\\Main.cpp: In member function `HugeInt HugeInt::operator/(int)':
\\temp\\Main.cpp:191: error: no match for 'operator/' in '*(HugeInt*)this / HugeInt(((long int)op1))'
\\temp\\Main.cpp:190: note: candidates are: HugeInt HugeInt::operator/(int)
\\temp\\Main.cpp:168: note:                 HugeInt HugeInt::operator/(HugeInt&)
\\temp\\Main.cpp: In member function `bool HugeInt::operator>(int)':
\\temp\\Main.cpp:202: error: no match for 'operator>' in '*(HugeInt*)this > HugeInt(((long int)op1))'
\\temp\\Main.cpp:201: note: candidates are: bool HugeInt::operator>(int)
\\temp\\Main.cpp:195: note:                 bool HugeInt::operator>(HugeInt&)
\\temp\\Main.cpp: In member function `bool HugeInt::operator>=(int)':
\\temp\\Main.cpp:212: error: no match for 'operator>=' in '*(HugeInt*)this >= HugeInt(((long int)op1))'
\\temp\\Main.cpp:211: note: candidates are: bool HugeInt::operator>=(int)
\\temp\\Main.cpp:205: note:                 bool HugeInt::operator>=(HugeInt&)
\\temp\\Main.cpp: In member function `bool HugeInt::operator<=(int)':
\\temp\\Main.cpp:222: error: no match for 'operator<=' in '*(HugeInt*)this <= HugeInt(((long int)op1))'
\\temp\\Main.cpp:221: note: candidates are: bool HugeInt::operator<=(int)
\\temp\\Main.cpp:215: note:                 bool HugeInt::operator<=(HugeInt&)
\\temp\\Main.cpp: In member function `bool HugeInt::operator<(int)':
\\temp\\Main.cpp:232: error: no match for 'operator<' in '*(HugeInt*)this < HugeInt(((long int)op1))'
\\temp\\Main.cpp:231: note: candidates are: bool HugeInt::operator<(int)
\\temp\\Main.cpp:225: note:                 bool HugeInt::operator<(HugeInt&)
\\temp\\Main.cpp: In member function `bool HugeInt::operator==(int)':
\\temp\\Main.cpp:242: error: no match for 'operator==' in '*(HugeInt*)this == HugeInt(((long int)op1))'
\\temp\\Main.cpp:241: note: candidates are: bool HugeInt::operator==(int)
\\temp\\Main.cpp:235: note:                 bool HugeInt::operator==(HugeInt&)
\\temp\\Main.cpp: In member function `bool HugeInt::operator!=(int)':
\\temp\\Main.cpp:252: error: no match for 'operator!=' in '*(HugeInt*)this != HugeInt(((long int)op1))'
\\temp\\Main.cpp:251: note: candidates are: bool HugeInt::operator!=(int)
\\temp\\Main.cpp:245: note:                 bool HugeInt::operator!=(HugeInt&)

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