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

0_0_39358179_23663.cpp: In constructor 'BigNum::BigNum()':
0_0_39358179_23663.cpp:17:27: error: 'memset' was not declared in this scope
   17 |         BigNum(){ len = 1;memset(a,0,sizeof(a)); }   //构造函数
      |                           ^~~~~~
0_0_39358179_23663.cpp:5:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
    4 | #include<algorithm>
  +++ |+#include <cstring>
    5 | using namespace std;
0_0_39358179_23663.cpp: In member function 'BigNum& BigNum::operator=(const BigNum&)':
0_0_39358179_23663.cpp:27:9: error: 'memset' was not declared in this scope
   27 |         memset(a,0,sizeof(a));
      |         ^~~~~~
0_0_39358179_23663.cpp:27:9: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
0_0_39358179_23663.cpp: In function 'int main()':
0_0_39358179_23663.cpp:69:16: error: no match for 'operator=' (operand types are 'BigNum' and 'int')
   69 |         que[0]=1;
      |                ^
0_0_39358179_23663.cpp:23:10: note: candidate: 'BigNum& BigNum::operator=(const BigNum&)'
   23 | BigNum & BigNum::operator=(const BigNum & n)   //重载赋值运算符,大数之间进行赋值运算
      |          ^~~~~~
0_0_39358179_23663.cpp:23:43: note:   no known conversion for argument 1 from 'int' to 'const BigNum&'
   23 | BigNum & BigNum::operator=(const BigNum & n)   //重载赋值运算符,大数之间进行赋值运算
      |                            ~~~~~~~~~~~~~~~^
0_0_39358179_23663.cpp:70:16: error: no match for 'operator=' (operand types are 'BigNum' and 'int')
   70 |         que[1]=1;
      |                ^
0_0_39358179_23663.cpp:23:10: note: candidate: 'BigNum& BigNum::operator=(const BigNum&)'
   23 | BigNum & BigNum::operator=(const BigNum & n)   //重载赋值运算符,大数之间进行赋值运算
      |          ^~~~~~
0_0_39358179_23663.cpp:23:43: note:   no known conversion for argument 1 from 'int' to 'const BigNum&'
   23 | BigNum & BigNum::operator=(const BigNum & n)   //重载赋值运算符,大数之间进行赋值运算
      |                            ~~~~~~~~~~~~~~~^
0_0_39358179_23663.cpp:71:16: error: no match for 'operator=' (operand types are 'BigNum' and 'int')
   71 |         que[2]=2;
      |                ^
0_0_39358179_23663.cpp:23:10: note: candidate: 'BigNum& BigNum::operator=(const BigNum&)'
   23 | BigNum & BigNum::operator=(const BigNum & n)   //重载赋值运算符,大数之间进行赋值运算
      |          ^~~~~~
0_0_39358179_23663.cpp:23:43: note:   no known conversion for argument 1 from 'int' to 'const BigNum&'
   23 | BigNum & BigNum::operator=(const BigNum & n)   //重载赋值运算符,大数之间进行赋值运算
      |                            ~~~~~~~~~~~~~~~^
0_0_39358179_23663.cpp:72:16: error: no match for 'operator=' (operand types are 'BigNum' and 'int')
   72 |         que[3]=4;
      |                ^
0_0_39358179_23663.cpp:23:10: note: candidate: 'BigNum& BigNum::operator=(const BigNum&)'
   23 | BigNum & BigNum::operator=(const BigNum & n)   //重载赋值运算符,大数之间进行赋值运算
      |          ^~~~~~
0_0_39358179_23663.cpp:23:43: note:   no known conversion for argument 1 from 'int' to 'const BigNum&'
   23 | BigNum & BigNum::operator=(const BigNum & n)   //重载赋值运算符,大数之间进行赋值运算
      |                            ~~~~~~~~~~~~~~~^


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-20 01:35:34, Gzip enabled