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_28655638_1046.cpp: In function 'void clear()':
0_0_28655638_1046.cpp:5:9: error: invalid use of non-static data member 'BigNum::L'
     int L,x[1003];
         ^
0_0_28655638_1046.cpp:6:25: error: from this location
     friend void clear(){L=0;memset(x,0,sizeof(x));}
                         ^
0_0_28655638_1046.cpp:5:17: error: invalid use of non-static data member 'BigNum::x'
     int L,x[1003];
                 ^
0_0_28655638_1046.cpp:6:36: error: from this location
     friend void clear(){L=0;memset(x,0,sizeof(x));}
                                    ^
0_0_28655638_1046.cpp: In function 'BigNum operator+(BigNum, BigNum)':
0_0_28655638_1046.cpp:9:20: error: 'struct BigNum' has no member named 'clear'
         BigNum c;c.clear();int L=max(a.L,b.L);
                    ^
0_0_28655638_1046.cpp: In function 'void Input(BigNum&)':
0_0_28655638_1046.cpp:17:11: error: 'struct BigNum' has no member named 'clear'
         a.clear();char s[1000];scanf("%s",s);a.L=strlen(s);
           ^


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-17 07:44:08, Gzip enabled