Borderou de evaluare (job #1044601)

Utilizator the_snyper06FMI - ALexandru Mihai the_snyper06 Data 30 noiembrie 2013 03:56:19
Problema Trie Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:18:25: error: ISO C++ forbids declaration of ‘string’ with no type [-fpermissive] void trie_insert(const &string w) { ^ user.cpp:18:32: error: expected ‘,’ or ‘...’ before ‘w’ void trie_insert(const &string w) { ^ user.cpp: In function ‘void trie_insert(const int&)’: user.cpp:21:21: error: ‘w’ was not declared in this scope for (int i = 0; w[i]; i++) { ^ user.cpp: In function ‘int main()’: user.cpp:91:40: error: invalid initialization of reference of type ‘const int&’ from expression of type ‘std::string {aka std::basic_string<char>}’ if (command == 0) trie_insert(w); ^ user.cpp:18:6: error: in passing argument 1 of ‘void trie_insert(const int&)’ void trie_insert(const &string w) { ^

Ceva nu functioneaza?