Borderou de evaluare (job #1992528)
Utilizator | Data | 20 iunie 2017 17:30:43 | |
---|---|---|---|
Problema | Cartite | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:11:31: error: ‘int index [1005]’ redeclared as different kind of symbol
int stiva[1005],top,index[1005],folosit[1005],nod;
^
In file included from /usr/include/c++/4.8/cstring:42:0,
from user.cpp:5:
/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 ‘int main()’:
user.cpp:95:27: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
while( index[ nod ] < lung )
^
user.cpp:97:40: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
aux = w[ nod ][ index[ nod ] ];
^
user.cpp:104:24: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
index[ nod ]++;
^
user.cpp:106:24: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
if( index[ nod ] == lung )
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !