Borderou de evaluare (job #2817709)

Utilizator RoberttoPopescu Paullo Robertto Karloss Robertto Data 14 decembrie 2021 01:31:47
Problema Componente biconexe Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In constructor 'muchie::muchie(int)': main.cpp:18:5: warning: 'muchie::cost' is initialized with itself [-Winit-self] 18 | muchie (int destinatie) : destinatie(destinatie), cost(cost) {} | ^~~~~~ main.cpp: In member function 'void Graf::citire()': main.cpp:113:64: error: no matching function for call to 'muchie::muchie(int&, int)' 113 | adiacenta[sursa].push_back(muchie(destinatie, 0)); | ^ main.cpp:18:5: note: candidate: 'muchie::muchie(int)' 18 | muchie (int destinatie) : destinatie(destinatie), cost(cost) {} | ^~~~~~ main.cpp:18:5: note: candidate expects 1 argument, 2 provided main.cpp:16:8: note: candidate: 'constexpr muchie::muchie(const muchie&)' 16 | struct muchie { | ^~~~~~ main.cpp:16:8: note: candidate expects 1 argument, 2 provided main.cpp:16:8: note: candidate: 'constexpr muchie::muchie(muchie&&)' main.cpp:16:8: note: candidate expects 1 argument, 2 provided main.cpp:118:64: error: no matching function for call to 'muchie::muchie(int&, int)' 118 | adiacenta[sursa].push_back(muchie(destinatie, 0)); | ^ main.cpp:18:5: note: candidate: 'muchie::muchie(int)' 18 | muchie (int destinatie) : destinatie(destinatie), cost(cost) {} | ^~~~~~ main.cpp:18:5: note: candidate expects 1 argument, 2 provided main.cpp:16:8: note: candidate: 'constexpr muchie::muchie(const muchie&)' 16 | struct muchie { | ^~~~~~ main.cpp:16:8: note: candidate expects 1 argument, 2 provided main.cpp:16:8: note: candidate: 'constexpr muchie::muchie(muchie&&)' main.cpp:16:8: note: candidate expects 1 argument, 2 provided main.cpp:119:64: error: no matching function for call to 'muchie::muchie(int&, int)' 119 | adiacenta[destinatie].push_back(muchie(sursa, 0)); | ^ main.cpp:18:5: note: candidate: 'muchie::muchie(int)' 18 | muchie (int destinatie) : destinatie(destinatie), cost(cost) {} | ^~~~~~ main.cpp:18:5: note: candidate expects 1 argument, 2 provided main.cpp:16:8: note: candidate: 'constexpr muchie::muchie(const muchie&)' 16 | struct muchie { | ^~~~~~ main.cpp:16:8: note: candidate expects 1 argument, 2 provided main.cpp:16:8: note: candidate: 'constexpr muchie::muchie(muchie&&)' main.cpp:16:8: note: candidate expects 1 argument, 2 provided main.cpp:106:28: warning: unused variable 'cost' [-Wunused-variable] 106 | int sursa, destinatie, cost, capacitate; // extremitate muchie stanga respectiv dreapta | ^~~~ main.cpp:106:34: warning: unused variable 'capacitate' [-Wunused-variable] 106 | int sursa, destinatie, cost, capacitate; // extremitate muchie stanga respectiv dreapta | ^~~~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?