Borderou de evaluare (job #3196991)

Utilizator Iustin2812Ion Iustin Ciprian Iustin2812 Data 25 ianuarie 2024 10:21:30
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:18:27: error: 'muchie' does not name a type 18 | bool operator <(const muchie &A)const{ | ^~~~~~ main.cpp: In member function 'bool<unnamed struct>::operator<(const int&) const': main.cpp:19:16: error: expected primary-expression before 'const' 19 | return const<a.cost; | ^~~~~ main.cpp:19:16: error: expected ';' before 'const' main.cpp:19:21: error: expected unqualified-id before '<' token 19 | return const<a.cost; | ^ main.cpp: In function 'int main()': main.cpp:63:21: error: request for member 'x' in 'muchie', which is of non-class type '<unnamed struct> [400001]' 63 | fin>>muchie.x>>muchie.y>>muchie.cost; | ^ main.cpp:63:31: error: request for member 'y' in 'muchie', which is of non-class type '<unnamed struct> [400001]' 63 | fin>>muchie.x>>muchie.y>>muchie.cost; | ^ main.cpp:63:41: error: request for member 'cost' in 'muchie', which is of non-class type '<unnamed struct> [400001]' 63 | fin>>muchie.x>>muchie.y>>muchie.cost; | ^~~~ main.cpp:64:5: error: 'sort' was not declared in this scope; did you mean 'short'? 64 | sort(muchie+1,muchie+m+1) | ^~~~ | short main.cpp:66:18: warning: statement has no effect [-Wunused-value] 66 | for(int i=1;i<=m;i++){ | ~^~~ main.cpp:66:25: error: expected ';' before ')' token 66 | for(int i=1;i<=m;i++){ | ^ | ; main.cpp:79:2: error: expected '}' at end of input 79 | } | ^ main.cpp:54:12: note: to match this '{' 54 | int main() { | ^ main.cpp:56:9: warning: unused variable 'x' [-Wunused-variable] 56 | int x,y,z; | ^ main.cpp:56:11: warning: unused variable 'y' [-Wunused-variable] 56 | int x,y,z; | ^ main.cpp:56:13: warning: unused variable 'z' [-Wunused-variable] 56 | int x,y,z; | ^ Non zero exit status: 1

Ceva nu functioneaza?