Borderou de evaluare (job #2176368)
Utilizator | Data | 16 martie 2018 23:56:08 | |
---|---|---|---|
Problema | Arbore partial de cost minim | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:15:48: error: ‘int index [400005]’ redeclared as different kind of symbol
int n, m, rang[nmax], t[nmax], cost, index[mmax];
^
In file included from /usr/include/c++/5/cstring:42:0,
from /usr/include/x86_64-linux-gnu/c++/5/32/bits/stdc++.h:48,
from user.cpp:1:
/usr/include/string.h:477:1: note: previous declaration ‘const char* index(const char*, int)’
index (const char *__s, int __c) __THROW
^
user.cpp: In function ‘void Kruskal()’:
user.cpp:57:20: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
index[k]=i;
^
user.cpp: In function ‘void afisare()’:
user.cpp:68:24: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
fout<<v[index[i]].x<<' '<<v[index[i]].y<<'\n';
^
user.cpp:68:44: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
fout<<v[index[i]].x<<' '<<v[index[i]].y<<'\n';
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !