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_29285783_22972.cpp: In function 'int main()':
0_0_29285783_22972.cpp:13:31: error: 'memset' was not declared in this scope
   memset(str1, 0, sizeof(str1));
                               ^
0_0_29285783_22972.cpp:15:23: error: 'strlen' was not declared in this scope
   int len1 = strlen(s1), len2 = strlen(s2);
                       ^
0_0_29285783_22972.cpp:16:20: error: 'strcmp' was not declared in this scope
   if (strcmp(s1, s2) == 0)
                    ^
0_0_29285783_22972.cpp:18:49: error: 'len2' was not declared in this scope
   else if (s1[0] != s2[0] || s1[len1 - 1] != s2[len2 - 1]) {
                                                 ^
0_0_29285783_22972.cpp:24:23: error: 'len2' was not declared in this scope
   for (int i = 0; i < len2; i++)
                       ^


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-06-30 15:50:17, Gzip enabled