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_22285074_2434.cpp: In function 'void add(char*, char*)':
0_0_22285074_2434.cpp:8:23: error: 'strlen' was not declared in this scope
    int len_a =strlen(a);
                       ^
0_0_22285074_2434.cpp:26:9: error: incompatible types in assignment of 'int' to 'char [1010]'
      sum=temp+48;
         ^
0_0_22285074_2434.cpp:32:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
     if (sum!=' ')cout<<sum;
              ^
0_0_22285074_2434.cpp: At global scope:
0_0_22285074_2434.cpp:37:11: error: '::main' must return 'int'
 void main()
           ^
0_0_22285074_2434.cpp: In function 'int main()':
0_0_22285074_2434.cpp:48:27: error: 'strlen' was not declared in this scope
        int len_a =strlen(a);
                           ^
0_0_22285074_2434.cpp:58:5: error: expected '}' at end of input
     }
     ^


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-26 20:56:55, Gzip enabled