Borderou de evaluare (job #1891510)
Utilizator | Data | 24 februarie 2017 08:46:21 | |
---|---|---|---|
Problema | Dictree | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:10:9: error: ‘int index’ redeclared as different kind of symbol
int n,N,index,nr;
^
In file included from user.cpp:3:0:
/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 ‘void adaug()’:
user.cpp:25:14: error: overloaded function with no contextual type information
index=s[i]-'a';
^
user.cpp:27:14: error: overloaded function with no contextual type information
index=s[i]-'A'+26;
^
user.cpp:28:28: error: invalid types ‘tri* [53][<unresolved overloaded function type>]’ for array subscript
if(q->nexttri[index]==0)
^
user.cpp:30:29: error: invalid types ‘tri* [53][<unresolved overloaded function type>]’ for array subscript
q->nexttri[index]=new tri;
^
user.cpp:33:27: error: invalid types ‘tri* [53][<unresolved overloaded function type>]’ for array subscript
q=q->nexttri[index];
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !