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_22776019_19951.cpp: In function 'void bigNumAdd(char*, char*, char*)':
0_0_22776019_19951.cpp:6:8: error: 'MAXSIZE' was not declared in this scope
 char m[MAXSIZE] = { 0 };
        ^
0_0_22776019_19951.cpp:8:36: error: 'memset' was not declared in this scope
 memset(sum, 0, MAXSIZE*sizeof(char)); //这里不能写成memset(sum,0,sizeof(sum));原因见注意事项1  
                                    ^
0_0_22776019_19951.cpp:10:20: error: 'strlen' was not declared in this scope
 int lenA = strlen(a);
                    ^
0_0_22776019_19951.cpp:14:1: error: 'm' was not declared in this scope
 m[i] = a[lenA - i - 1] - '0';
 ^
0_0_22776019_19951.cpp:18:1: error: 'n' was not declared in this scope
 n[i] = b[lenB - i - 1] - '0';
 ^
0_0_22776019_19951.cpp:23:11: error: 'm' was not declared in this scope
 sum[i] = (m[i] + n[i] + c) % 10 + '0';//得到末位  
           ^
0_0_22776019_19951.cpp:23:18: error: 'n' was not declared in this scope
 sum[i] = (m[i] + n[i] + c) % 10 + '0';//得到末位  
                  ^


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:53, Gzip enabled