Borderou de evaluare (job #2924599)
Utilizator | Data | 5 octombrie 2022 22:28:48 | |
---|---|---|---|
Problema | Interesant | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:10:28: error: 'int index [200]' redeclared as different kind of entity
10 | int P, N, n[200], index[200], next[200][5005][26];
| ^
In file included from /usr/include/string.h:432,
from /usr/include/c++/10/cstring:42,
from main.cpp:7:
/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 'int main()':
main.cpp:21:57: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
21 | fgets(s[i], 5005, f), n[i]=strlen(s[i])-1, index[i]=i;
| ^
main.cpp:47:26: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
47 | for(j=n[index[i]]-1;j>-1;--j)
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !