Borderou de evaluare (job #2642416)

Utilizator oglindaoglinjoaraJohn Cena oglindaoglinjoara Data 15 august 2020 10:24:21
Problema Trie Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:9:1: error: 'unordered' does not name a type unordered<int, int > children; ^~~~~~~~~ main.cpp: In function 'void insert(int, std::__cxx11::string&, int)': main.cpp:13:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(ind == s.size()) { ~~~~^~~~~~~~~~~ main.cpp:17:7: error: 'children' was not declared in this scope if(!children[nod*26 + s[ind] - 'a']) { ^~~~~~~~ main.cpp:20:12: error: 'children' was not declared in this scope int ch = children[nod*26 + s[ind] - 'a']; ^~~~~~~~ main.cpp: In function 'void del(int, std::__cxx11::string&, int)': main.cpp:26:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(ind == s.size()) { ~~~~^~~~~~~~~~~ main.cpp:30:7: error: 'children' was not declared in this scope del(children[nod*26 + s[ind] - 'a'], s, ind+1); ^~~~~~~~ main.cpp: In function 'int count(int, std::__cxx11::string&, int)': main.cpp:34:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(ind == s.size()) { ~~~~^~~~~~~~~~~ main.cpp:37:7: error: 'children' was not declared in this scope if(!children[nod*26 + s[ind] - 'a']) return 0; ^~~~~~~~ main.cpp:38:16: error: 'children' was not declared in this scope return count(children[nod*26 + s[ind] - 'a'], s, ind+1); ^~~~~~~~ main.cpp: In function 'int lp(int, std::__cxx11::string&, int)': main.cpp:43:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(ind == s.size() || !children[nod*26 + s[ind] - 'a']) { ~~~~^~~~~~~~~~~ main.cpp:43:26: error: 'children' was not declared in this scope if(ind == s.size() || !children[nod*26 + s[ind] - 'a']) { ^~~~~~~~ main.cpp:46:13: error: 'children' was not declared in this scope return lp(children[nod*26 + s[ind] - 'a'], s, ind+1); ^~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?