Borderou de evaluare (job #2987745)
Utilizator | Data | 2 martie 2023 19:21:52 | |
---|---|---|---|
Problema | ADN | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:12:15: error: 'int index [20]' redeclared as different kind of entity
12 | int index[NMAX];
| ^
In file included from /usr/include/string.h:432,
from /usr/include/c++/10/cstring:42,
from main.cpp:3:
/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 printSolution(int, int, FILE*)':
main.cpp:57:45: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
57 | int extra=parent[mask][last]==-1?len[index[last]]:dp[mask][last]-dp[mask^(1<<last)][parent[mask][last]];
| ^
main.cpp:58:27: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
58 | fprintf(g, "%s", s[index[last]]+len[index[last]]-extra+1);
| ^
main.cpp:58:44: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
58 | fprintf(g, "%s", s[index[last]]+len[index[last]]-extra+1);
| ^
main.cpp: In function 'int main()':
main.cpp:72:8: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
72 | index[i]=i;
| ^
main.cpp:78:24: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator+'
78 | std::sort(index, index+N, cmp);
| ~~~~~^~
main.cpp:82:25: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
82 | for(j=i+1;j<N && index[i]!=-1;++j)
| ^
main.cpp:84:20: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
84 | x=getExtra(index[i], index[j]);
| ^
main.cpp:84:30: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
84 | x=getExtra(index[i], index[j]);
| ^
main.cpp:86:10: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
86 | index[i]=-1;
| ^
main.cpp:88:18: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
88 | combine[index[j]][index[i]]=x;
| ^
main.cpp:88:28: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
88 | combine[index[j]][index[i]]=x;
| ^
main.cpp:91:11: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
91 | if(index[i]==-1)
| ^
main.cpp:94:10: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
94 | index[j-1]=index[j];
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !