Borderou de evaluare (job #1707039)

Utilizator contnouAndrei Pavel contnou Data 24 mai 2016 01:32:10
Problema Trie Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:11:1: error: ‘TrieNode’ does not name a type TrieNode trieRoot; ^ user.cpp: In function ‘void addWord(TrieNode*, int)’: user.cpp:28:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (word.length() == pos) { ^ user.cpp: In function ‘int queryWordCount(TrieNode*, int)’: user.cpp:45:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (word.length() == pos) { ^ user.cpp: In function ‘TrieNode* deleteWord(TrieNode*, int)’: user.cpp:60:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (word.length() == pos) { ^ user.cpp:71:14: error: ‘trieRoot’ was not declared in this scope if (root != trieRoot && root->childrenCount == 0 && root->count == 0) { ^ user.cpp: In function ‘int queryLongestPrefix(TrieNode*, int)’: user.cpp:81:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (word.length() == pos) { ^ user.cpp: In function ‘int main()’: user.cpp:110:14: error: ‘trieRoot’ was not declared in this scope addWord(&trieRoot, 0); ^

Ceva nu functioneaza?