Borderou de evaluare (job #2449617)

Utilizator r00t_Roman Remus r00t_ Data 20 august 2019 11:41:05
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:26:48: error: 'memset' was not declared in this scope memset(this->neigh, NULL, sizeof(this->neigh)); ^ main.cpp: In function 'void trieOp::insert(trie*&, std::__cxx11::string&, int)': main.cpp:37:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (ind == buff.size()) ~~~~^~~~~~~~~~~~~~ main.cpp: In function 'void trieOp::remove(trie*&, std::__cxx11::string&, int)': main.cpp:54:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (ind == buff.size()) ~~~~^~~~~~~~~~~~~~ main.cpp: In function 'int trieOp::get_freq(trie*&, std::__cxx11::string&, int)': main.cpp:69:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (buff.size() == ind) ~~~~~~~~~~~~^~~~~~ main.cpp: In function 'int trieOp::get_longest_prefix(trie*&, std::__cxx11::string&, int)': main.cpp:81:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (node->freq > 0 && ind < buff.size()) ~~~~^~~~~~~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?