Borderou de evaluare (job #2845009)

Utilizator Langa_bLanga Radu Langa_b Data 6 februarie 2022 23:04:37
Problema Trie Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In constructor 'trie::trie()': main.cpp:14:3: error: 'memset' was not declared in this scope 14 | memset(fii, NULL, sizeof(fii)); | ^~~~~~ main.cpp:2:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'? 1 | #include <fstream> +++ |+#include <cstring> 2 | #include <string> main.cpp: In function 'void ad(trie*, int)': main.cpp:20:10: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 20 | if (pos == str.size() - 1) { | ~~~~^~~~~~~~~~~~~~~~~ main.cpp:27:10: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 27 | if (pos < str.size() && str[pos] >='a' && str[pos] <= 'z') { | ~~~~^~~~~~~~~~~~ main.cpp:33:11: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 33 | if ((pos < str.size() - 1)) { | ~~~~^~~~~~~~~~~~~~~~ main.cpp: In function 'bool del(trie*, int)': main.cpp:39:10: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 39 | if (pos <= str.size() - 1 && str[pos] >= 'a' && str[pos] <= 'z') { | ~~~~^~~~~~~~~~~~~~~~~ main.cpp:45:10: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 45 | if (pos == str.size()) { | ~~~~^~~~~~~~~~~~~ main.cpp: In function 'void fi(trie*, int)': main.cpp:55:10: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 55 | if (pos == str.size()) { | ~~~~^~~~~~~~~~~~~ main.cpp:59:11: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 59 | if (pos < str.size() && str[pos] >= 'a' && str[pos] <= 'z') { | ~~~~^~~~~~~~~~~~ main.cpp: In function 'void pre(trie*, int)': main.cpp:71:10: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 71 | if (pos < str.size() && str[pos] >= 'a' && str[pos] <= 'z') { | ~~~~^~~~~~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?