Borderou de evaluare (job #2486219)
Utilizator | Data | 2 noiembrie 2019 14:43:03 | |
---|---|---|---|
Problema | Arbore partial de cost minim | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:17:26: error: 'int index [200005]' redeclared as different kind of symbol
int TT[nrmax],index[nrmax],cnt,solutie,p[nrmax];
^
In file included from /usr/include/c++/6/cstring:42:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:48,
from main.cpp:1:
/usr/include/string.h:477:1: note: previous declaration 'const char* index(const char*, int)'
index (const char *__s, int __c) __THROW
^~~~~
main.cpp: In function 'void read()':
main.cpp:25:9: warning: unused variable 'k' [-Wunused-variable]
int k,l;
^
main.cpp:25:11: warning: unused variable 'l' [-Wunused-variable]
int k,l;
^
main.cpp: In function 'void unire(int, int)':
main.cpp:45:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(p[x]>p[y])
^~
main.cpp:47:9: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
if(p[x]==p[y])
^~
main.cpp: In function 'void Krsl()':
main.cpp:65:24: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
index[++cnt]=i;
^
main.cpp: In function 'int main()':
main.cpp:74:26: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
out<<Edge[index[i]].y<<" "<<Edge[index[i]].x<<'\n';
^
main.cpp:74:49: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
out<<Edge[index[i]].y<<" "<<Edge[index[i]].x<<'\n';
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !