Borderou de evaluare (job #2917328)

Utilizator vladburacBurac Vlad vladburac Data 4 august 2022 14:20:13
Problema Coach Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:14:17: error: 'int index [101]' redeclared as different kind of entity 14 | int index[MAXN+1]; | ^ 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:24:10: error: invalid types '<unresolved overloaded function type>[int]' for array subscript 24 | index[val[i].second] = i; | ^ main.cpp:39:16: error: invalid types '<unresolved overloaded function type>[int]' for array subscript 39 | if( index[edge.a] >= i && index[edge.b] >= i ) { | ^ main.cpp:39:38: error: invalid types '<unresolved overloaded function type>[int]' for array subscript 39 | if( index[edge.a] >= i && index[edge.b] >= i ) { | ^ main.cpp:40:19: error: invalid types '<unresolved overloaded function type>[int]' for array subscript 40 | dist[index[edge.a]][index[edge.b]] = edge.cost; | ^ main.cpp:40:34: error: invalid types '<unresolved overloaded function type>[int]' for array subscript 40 | dist[index[edge.a]][index[edge.b]] = edge.cost; | ^ main.cpp:41:19: error: invalid types '<unresolved overloaded function type>[int]' for array subscript 41 | dist[index[edge.b]][index[edge.a]] = edge.cost; | ^ main.cpp:41:34: error: invalid types '<unresolved overloaded function type>[int]' for array subscript 41 | dist[index[edge.b]][index[edge.a]] = edge.cost; | ^ Non zero exit status: 1

Ceva nu functioneaza?