Borderou de evaluare (job #2794348)

Utilizator realmeabefirhuja petru realmeabefir Data 4 noiembrie 2021 18:12:59
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: In function 'int main()': main.cpp:67:17: warning: unused variable 'parinte_to' [-Wunused-variable] 67 | int parinte_to = get_parent(m.to); | ^~~~~~~~~~ main.cpp:68:17: warning: unused variable 'parinte_from' [-Wunused-variable] 68 | int parinte_from = get_parent(m.from); | ^~~~~~~~~~~~ main.cpp:77:13: error: expected '}' before 'else' 77 | else | ^~~~ main.cpp:65:9: note: to match this '{' 65 | { | ^ main.cpp:80:21: error: 'parinte_from' was not declared in this scope 80 | if (parinte_from == parinte_to) | ^~~~~~~~~~~~ main.cpp:80:37: error: 'parinte_to' was not declared in this scope 80 | if (parinte_from == parinte_to) | ^~~~~~~~~~ main.cpp:83:20: error: 'parinte_to' was not declared in this scope 83 | cc[parinte_to] = parinte_from; | ^~~~~~~~~~ main.cpp:83:34: error: 'parinte_from' was not declared in this scope 83 | cc[parinte_to] = parinte_from; | ^~~~~~~~~~~~ main.cpp:87:9: error: 'else' without a previous 'if' 87 | else | ^~~~ main.cpp:90:22: error: request for member 'from' in 'm', which is of non-class type 'int' 90 | if (cc[m.from] != -1) | ^~~~ main.cpp:93:49: error: request for member 'from' in 'm', which is of non-class type 'int' 93 | int parinte_from = get_parent(m.from); | ^~~~ main.cpp:94:22: error: request for member 'to' in 'm', which is of non-class type 'int' 94 | cc[m.to] = parinte_from; | ^~ main.cpp:98:47: error: request for member 'to' in 'm', which is of non-class type 'int' 98 | int parinte_to = get_parent(m.to); | ^~ main.cpp:99:22: error: request for member 'from' in 'm', which is of non-class type 'int' 99 | cc[m.from] = parinte_to; | ^~~~ main.cpp:101:34: error: no matching function for call to 'std::vector<muchie>::push_back(int&)' 101 | edges_res.push_back(m); | ^ In file included from /usr/include/c++/10/vector:67, from /usr/include/c++/10/queue:61, from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:86, from main.cpp:2: Non zero exit status: 1

Ceva nu functioneaza?