Borderou de evaluare (job #2838563)
Utilizator | Data | 24 ianuarie 2022 00:59:30 | |
---|---|---|---|
Problema | Ghicit | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:12:19: error: 'int index [100001]' redeclared as different kind of entity
12 | int index[NMAX + 1];
| ^
In file included from /usr/include/string.h:432,
from /usr/include/c++/10/cstring:42,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:48,
from main.cpp:1:
/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 suffixsort(std::string)':
main.cpp:37:14: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
37 | index[v[0].i] = 0;
| ^
main.cpp:44:18: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
44 | index[v[i].i] = i;
| ^
main.cpp:49:40: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
49 | v[i].order[1] = v[index[nxt]].order[0];
| ^
main.cpp: In function 'int main()':
main.cpp:68:14: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
68 | index[v[i].i] = v[i + 1].i;
| ^
main.cpp:70:10: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
70 | index[v[i].i] = -1;
| ^
main.cpp:73:19: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
73 | if ( index[i] == -1 )
| ^
main.cpp:76:42: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
76 | while ( s[i + len] == s[index[i] + len] )
| ^
main.cpp:60:15: warning: unused variable 'j' [-Wunused-variable]
60 | int n, i, j;
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !