Borderou de evaluare (job #2954803)
Utilizator | Data | 15 decembrie 2022 14:00:15 | |
---|---|---|---|
Problema | Coach | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:8:48: error: 'int index [105]' redeclared as different kind of entity
8 | int adj[NMAX][NMAX], rf[NMAX][NMAX], index[NMAX];
| ^
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 'int main()':
main.cpp:50:14: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
50 | index[bauturi[i].second] = i;
| ^
main.cpp:58:18: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
58 | adj[index[node1]][index[node2]] = cost;
| ^
main.cpp:58:32: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
58 | adj[index[node1]][index[node2]] = cost;
| ^
main.cpp:59:18: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
59 | adj[index[node2]][index[node1]] = cost;
| ^
main.cpp:59:32: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
59 | adj[index[node2]][index[node1]] = cost;
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !