Borderou de evaluare (job #2275652)

Utilizator nicolebianca28Stanica Nicole nicolebianca28 Data 3 noiembrie 2018 13:02:55
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 'void sort(muchie, int)': main.cpp:44:9: error: no match for 'operator[]' (operand types are 'std::vector<muchie> [200001]' and 'muchie') if(v[x].cost>v[y].cost) ^ main.cpp:44:23: error: 'class std::vector<muchie>' has no member named 'cost' if(v[x].cost>v[y].cost) ^~~~ main.cpp:45:14: error: no match for 'operator[]' (operand types are 'std::vector<muchie> [200001]' and 'muchie') cmp(v[x].cost,v[y].cost); ^ main.cpp:45:28: error: 'class std::vector<muchie>' has no member named 'cost' cmp(v[x].cost,v[y].cost); ^~~~ main.cpp: In function 'int main()': main.cpp:60:17: error: 'class std::vector<muchie>' has no member named 'a'; did you mean 'at'? f>>v[i].a>>v[i].b>>v[i].cost; ^ main.cpp:60:25: error: 'class std::vector<muchie>' has no member named 'b' f>>v[i].a>>v[i].b>>v[i].cost; ^ main.cpp:60:33: error: 'class std::vector<muchie>' has no member named 'cost' f>>v[i].a>>v[i].b>>v[i].cost; ^~~~ main.cpp:61:19: error: 'class std::vector<muchie>' has no member named 'a'; did you mean 'at'? f>>v[i+1].a>>v[i+1].b>>v[i+1].cost; ^ main.cpp:61:29: error: 'class std::vector<muchie>' has no member named 'b' f>>v[i+1].a>>v[i+1].b>>v[i+1].cost; ^ main.cpp:61:39: error: 'class std::vector<muchie>' has no member named 'cost' f>>v[i+1].a>>v[i+1].b>>v[i+1].cost; ^~~~ main.cpp:63:17: error: could not convert 'v[i]' from 'std::vector<muchie>' to 'muchie' sort(v[i],v[i+1]); ~~~^ main.cpp:69:18: error: 'class std::vector<muchie>' has no member named 'cost' s=s+v[i].cost; ^~~~ main.cpp:75:17: error: 'class std::vector<muchie>' has no member named 'a'; did you mean 'at'? g<<v[i].a<<" "<<v[i].b<<endl; ^ main.cpp:75:30: error: 'class std::vector<muchie>' has no member named 'b' g<<v[i].a<<" "<<v[i].b<<endl; ^ main.cpp: At global scope: main.cpp:83:1: error: 'Attachments' does not name a type Attachments area ^~~~~~~~~~~ main.cpp:90:11: error: redefinition of 'std::ifstream f' ifstream f("apm.in"); Non zero exit status: 1

Ceva nu functioneaza?