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_27732459_25867.cpp: In function 'char add(char*, char*)':
0_0_27732459_25867.cpp:7:29: error: 'strlen' was not declared in this scope
      int up=0, lena=strlen(a)-1, lenb=strlen(b)-1, id=0;
                             ^
0_0_27732459_25867.cpp:9:21: error: 'lenb' was not declared in this scope
      while(lena>=0||lenb>=0)
                     ^
0_0_27732459_25867.cpp:16:14: error: 'id' was not declared in this scope
          ans[id++] = k + '0';
              ^
0_0_27732459_25867.cpp:19:20: error: 'id' was not declared in this scope
      if(up==1) ans[id++] = '1';
                    ^
0_0_27732459_25867.cpp:20:10: error: 'id' was not declared in this scope
      ans[id] = '\0';
          ^
0_0_27732459_25867.cpp:21:16: error: 'strrev' was not declared in this scope
      strrev(ans);
                ^
0_0_27732459_25867.cpp:22:18: error: 'strcpy' was not declared in this scope
      strcpy(c,ans);
                  ^


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