Borderou de evaluare (job #2924059)
Utilizator | Data | 23 septembrie 2022 21:53:13 | |
---|---|---|---|
Problema | Perb | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:9:16: error: 'int index [257]' redeclared as different kind of entity
9 | int index[SIGMA];
| ^
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 precompute(std::string)':
main.cpp:14:8: error: invalid types '<unresolved overloaded function type>[char]' for array subscript
14 | index['A'] = 1;
| ^
main.cpp:15:8: error: invalid types '<unresolved overloaded function type>[char]' for array subscript
15 | index['C'] = 2;
| ^
main.cpp:16:8: error: invalid types '<unresolved overloaded function type>[char]' for array subscript
16 | index['T'] = 3;
| ^
main.cpp:17:8: error: invalid types '<unresolved overloaded function type>[char]' for array subscript
17 | index['G'] = 4;
| ^
main.cpp:24:18: error: invalid types '<unresolved overloaded function type>[__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type {aka char}]' for array subscript
24 | if (index[s[i - 1]] != letter) {
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !