Borderou de evaluare (job #3242105)

Utilizator RosheRadutu Robert Roshe Data 9 septembrie 2024 00:18:02
Problema Trie Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void del(std::__cxx11::list<char*>&, char*)': main.cpp:19:8: error: 'strcmp' was not declared in this scope 19 | if(strcmp(x, *it) == 0){ | ^~~~~~ main.cpp:6:1: note: 'strcmp' is defined in header '<cstring>'; did you forget to '#include <cstring>'? 5 | #include <cstdio> +++ |+#include <cstring> 6 | main.cpp: In function 'void countWord(std::__cxx11::list<char*>, char*)': main.cpp:29:8: error: 'strcmp' was not declared in this scope 29 | if(strcmp(x, *it) == 0){ | ^~~~~~ main.cpp:29:8: note: 'strcmp' is defined in header '<cstring>'; did you forget to '#include <cstring>'? main.cpp: In function 'void longestPrefix(std::__cxx11::list<char*>, char*)': main.cpp:40:8: error: 'strcmp' was not declared in this scope 40 | if(strcmp(x, *it) == 0) continue; | ^~~~~~ main.cpp:40:8: note: 'strcmp' is defined in header '<cstring>'; did you forget to '#include <cstring>'? main.cpp:42:22: error: 'strlen' was not declared in this scope 42 | for(int i = 0; i<strlen(*it); i++){ | ^~~~~~ main.cpp:42:22: note: 'strlen' is defined in header '<cstring>'; did you forget to '#include <cstring>'? main.cpp: In function 'int main()': main.cpp:62:22: error: 'strdup' was not declared in this scope 62 | trie.push_back(strdup(input + 2)); // or input + 2 | ^~~~~~ Non zero exit status: 1

Ceva nu functioneaza?