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_13156994_10090.cpp: In function 'void reverse(char*)':
0_0_13156994_10090.cpp:15:29: error: 'strlen' was not declared in this scope
  for ( i = 0; i < strlen(str); i++ ) tmp[strlen(str) - i - 1] = str[i];
                             ^
0_0_13156994_10090.cpp:16:29: error: 'strlen' was not declared in this scope
  for ( i = 0; i < strlen(str); i++ ) str[i] = tmp[i];
                             ^
0_0_13156994_10090.cpp: In function 'int main()':
0_0_13156994_10090.cpp:39:27: error: 'memset' was not declared in this scope
   memset( a, 0, sizeof(a) );memset( b, 0, sizeof(b) );memset( c, 0, sizeof(c) );
                           ^
0_0_13156994_10090.cpp:45:33: error: 'strlen' was not declared in this scope
   for ( i = 0; i < min( strlen(a), strlen(b) ); i++ )
                                 ^
0_0_13156994_10090.cpp:51:20: error: 'strlen' was not declared in this scope
   maxc = ( strlen(a) > strlen(b) ) ? a : b;
                    ^


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.015600(s) query 1, Server time : 2024-11-17 02:04:26, Gzip enabled