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_38883606_5755.cpp: In function 'void Insert(Node*, char*, char*)':
0_0_38883606_5755.cpp:17:15: error: 'strlen' was not declared in this scope
   17 |     int len = strlen (str);
      |               ^~~~~~
0_0_38883606_5755.cpp:2:1: note: 'strlen' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
    1 | #include <iostream>
  +++ |+#include <cstring>
    2 | 
0_0_38883606_5755.cpp:40:5: error: 'strcpy' was not declared in this scope
   40 |     strcpy (ans->str,ch);
      |     ^~~~~~
0_0_38883606_5755.cpp:40:5: note: 'strcpy' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
0_0_38883606_5755.cpp: In function 'bool Search(Node*, char*, char*)':
0_0_38883606_5755.cpp:45:15: error: 'strlen' was not declared in this scope
   45 |     int len = strlen (str);
      |               ^~~~~~
0_0_38883606_5755.cpp:45:15: note: 'strlen' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
0_0_38883606_5755.cpp:61:9: error: 'strcpy' was not declared in this scope
   61 |         strcpy (ch, ans->str);
      |         ^~~~~~
0_0_38883606_5755.cpp:61:9: note: 'strcpy' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
0_0_38883606_5755.cpp: In function 'int main()':
0_0_38883606_5755.cpp:80:13: error: 'strcmp' was not declared in this scope
   80 |         if (strcmp (ch1, "START") == 0)
      |             ^~~~~~
0_0_38883606_5755.cpp:80:13: note: 'strcmp' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
0_0_38883606_5755.cpp:97:13: error: 'strcmp' was not declared in this scope
   97 |         if (strcmp (str, "START") == 0)
      |             ^~~~~~
0_0_38883606_5755.cpp:97:13: note: 'strcmp' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
0_0_38883606_5755.cpp:109:29: error: 'strlen' was not declared in this scope
  109 |         for (int i = 0; i < strlen (str); i++)
      |                             ^~~~~~
0_0_38883606_5755.cpp:109:29: note: 'strlen' is defined in header '<cstring>'; did you forget to '#include <cstring>'?


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-07-03 18:14:00, Gzip enabled