Borderou de evaluare (job #1838279)

Utilizator andrei_diaconuAndrei Diaconu andrei_diaconu Data 31 decembrie 2016 16:55:03
Problema Trie Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:102:23: error: invalid initialization of reference of type ‘char (&)[20]’ from expression of type ‘char [21]’ insert_new_word(tmp); ^ user.cpp:31:6: error: in passing argument 1 of ‘void insert_new_word(char (&)[20])’ void insert_new_word(char (&newWord)[20]) ^ user.cpp:105:41: error: invalid initialization of reference of type ‘char (&)[20]’ from expression of type ‘char [21]’ delete_word(root, tmp, 0, strlen(tmp)); ^ user.cpp:48:6: error: in passing argument 2 of ‘bool delete_word(TrieNode*, char (&)[20], int, int)’ bool delete_word(TrieNode* crtNode, char (&word)[20], int pos, int len) ^ user.cpp:108:33: error: invalid initialization of reference of type ‘char (&)[20]’ from expression of type ‘char [21]’ g << number_of_occurences(tmp) << "\n"; ^ user.cpp:65:5: error: in passing argument 1 of ‘int number_of_occurences(char (&)[20])’ int number_of_occurences(char(&word)[20]) ^ user.cpp:111:27: error: invalid initialization of reference of type ‘char (&)[20]’ from expression of type ‘char [21]’ g << longest_prefix(tmp) << "\n"; ^ user.cpp:76:5: error: in passing argument 1 of ‘int longest_prefix(char (&)[20])’ int longest_prefix(char(&word)[20]) ^

Ceva nu functioneaza?