Borderou de evaluare (job #1967524)

Utilizator TibixbAndrei Tiberiu Tibixb Data 16 aprilie 2017 19:11:54
Problema Sub Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:8:11: error: ‘int index’ redeclared as different kind of symbol int n, m, index, na, nb, sol; ^ In file included from /usr/include/c++/4.8/cstring:42:0, from user.cpp:2: /usr/include/string.h:482:1: error: previous declaration of ‘const char* index(const char*, int)’ index (__const char *__s, int __c) __THROW ^ user.cpp: In function ‘bool _insert(trie*, char*, char*)’: user.cpp:32:33: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator-’ if(nod -> na == index - 1) ^ user.cpp:34:23: error: cannot resolve overloaded function ‘index’ based on conversion to type ‘int’ nod -> na = index; ^ user.cpp:37:25: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator==’ if(nod -> na == index) ^ user.cpp: In function ‘void na_set(trie*)’: user.cpp:55:25: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator==’ if(nod -> na == index) ^ user.cpp: In function ‘int main()’: user.cpp:126:14: error: no post-increment operator for type index++; ^ user.cpp: In function ‘bool _insert(trie*, char*, char*)’: user.cpp:49:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ user.cpp: In function ‘bool del(trie*, char*, char*)’: user.cpp:99:1: warning: control reaches end of non-void function [-Wreturn-type] } ^

Ceva nu functioneaza?