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_31212356_27551.cpp: In constructor 'bigNumber::bigNumber()':
0_0_31212356_27551.cpp:12:39: error: 'memset' was not declared in this scope
         memset(number,0,sizeof(number));
                                       ^
0_0_31212356_27551.cpp: In constructor 'bigNumber::bigNumber(char*)':
0_0_31212356_27551.cpp:17:37: error: 'strlen' was not declared in this scope
         memcpy(number,str,strlen(str)+1);
                                     ^
0_0_31212356_27551.cpp: In constructor 'bigNumber::bigNumber(int)':
0_0_31212356_27551.cpp:22:39: error: 'memset' was not declared in this scope
         memset(number,0,sizeof(number));
                                       ^
0_0_31212356_27551.cpp:32:27: error: '_strrev' was not declared in this scope
             _strrev(number);
                           ^
0_0_31212356_27551.cpp: In member function 'bigNumber& bigNumber::operator+(bigNumber&)':
0_0_31212356_27551.cpp:52:46: error: 'strlen' was not declared in this scope
         bigNumber* a=strlen(this->getNumber())>strlen(t.getNumber())?this:&t;
                                              ^
0_0_31212356_27551.cpp:76:18: error: '_strrev' was not declared in this scope
         _strrev(z);
                  ^
0_0_31212356_27551.cpp: In member function 'bigNumber& bigNumber::operator*(bigNumber&)':
0_0_31212356_27551.cpp:86:26: error: 'strlen' was not declared in this scope
         int lenx=strlen(x);
                          ^
0_0_31212356_27551.cpp:89:35: error: 'memset' was not declared in this scope
         memset(temp,0,sizeof(temp));
                                   ^
0_0_31212356_27551.cpp:102:18: error: '_strrev' was not declared in this scope
         _strrev(z);
                  ^
0_0_31212356_27551.cpp: In member function 'bigNumber& bigNumber::operator=(bigNumber&)':
0_0_31212356_27551.cpp:108:57: error: 'strlen' was not declared in this scope
         memcpy(number,t.getNumber(),strlen(t.getNumber())+1);
                                                         ^
0_0_31212356_27551.cpp: In member function 'bigNumber& bigNumber::operator=(char*)':
0_0_31212356_27551.cpp:114:37: error: 'strlen' was not declared in this scope
         memcpy(number,str,strlen(str)+1);
                                     ^
0_0_31212356_27551.cpp: In function 'int main()':
0_0_31212356_27551.cpp:129:18: error: no match for 'operator*' (operand types are 'bigNumber' and 'bigNumber')
         s[n]=s[n]*bigNumber(2);
                  ^
0_0_31212356_27551.cpp:129:18: note: candidate is:
0_0_31212356_27551.cpp:80:16: note: bigNumber& bigNumber::operator*(bigNumber&)
     bigNumber& operator*(bigNumber& t)
                ^
0_0_31212356_27551.cpp:80:16: note:   no known conversion for argument 1 from 'bigNumber' to 'bigNumber&'


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-16 10:04:38, Gzip enabled