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_39103207_26717.cpp: In function 'int findWordsInTitle(char*, int, int, int)':
0_0_39103207_26717.cpp:62:33: error: 'strcpy' was not declared in this scope
   62 |                                 strcpy(art[num].words[k++], tmpstr);
      |                                 ^~~~~~
0_0_39103207_26717.cpp:4:1: note: 'strcpy' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
    3 | #include <algorithm>
  +++ |+#include <cstring>
    4 | using namespace std;
0_0_39103207_26717.cpp:66:33: error: 'strcpy' was not declared in this scope
   66 |                                 strcpy(queryWords.words[k++] ,tmpstr);
      |                                 ^~~~~~
0_0_39103207_26717.cpp:66:33: note: 'strcpy' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
0_0_39103207_26717.cpp: In function 'int compareTwoTitles(Node, Node)':
0_0_39103207_26717.cpp:95:30: error: 'strcmp' was not declared in this scope
   95 |                         if (!strcmp(word.words[i], title.words[j]))
      |                              ^~~~~~
0_0_39103207_26717.cpp:95:30: note: 'strcmp' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
0_0_39103207_26717.cpp: In function 'int main()':
0_0_39103207_26717.cpp:125:17: error: 'memset' was not declared in this scope
  125 |                 memset(&art, 0, sizeof(art));
      |                 ^~~~~~
0_0_39103207_26717.cpp:125:17: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
0_0_39103207_26717.cpp:132:29: error: 'strlen' was not declared in this scope
  132 |                         n = strlen(art[i].oldStr);
      |                             ^~~~~~
0_0_39103207_26717.cpp:132: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-11-22 16:30:15, Gzip enabled