Borderou de evaluare (job #2840266)
Utilizator | Data | 27 ianuarie 2022 11:51:12 | |
---|---|---|---|
Problema | Miting | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:32:12: error: 'int index [26]' redeclared as different kind of entity
32 | int index[X];
| ^
In file included from /usr/include/string.h:432,
from main.cpp:4:
/usr/include/strings.h:61:1: note: previous declaration 'const char* index(const char*, int)'
61 | index (const char *__s, int __c) __THROW
| ^~~~~
main.cpp: In function 'void calcCost()':
main.cpp:56:32: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
56 | int cod = index[o[l][c] - 'A'];
| ^
main.cpp: In function 'int main()':
main.cpp:92:14: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
92 | index[cuv[i] - 'A'] = i;
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !