Borderou de evaluare (job #2400987)

Utilizator lucianistratiIstrati Lucian lucianistrati Data 9 aprilie 2019 12:36:20
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:7:3: error: expected identifier before 'int' int i,M,cntAPM=0,costAPM=0; ^~~ main.cpp:7:7: error: two or more data types in declaration of 'i' int i,M,cntAPM=0,costAPM=0; ^ main.cpp:7:9: error: two or more data types in declaration of 'M' int i,M,cntAPM=0,costAPM=0; ^ main.cpp:7:11: error: two or more data types in declaration of 'cntAPM' int i,M,cntAPM=0,costAPM=0; ^~~~~~ main.cpp:7:20: error: two or more data types in declaration of 'costAPM' int i,M,cntAPM=0,costAPM=0; ^~~~~~~ main.cpp: In function 'void Prim(int)': main.cpp:52:9: error: 'i' was not declared in this scope for(i=0;i<v[nod_start].size();i++) ^ main.cpp:56:13: error: 'costAPM' was not declared in this scope costAPM+=v[nod_start].second; ^~~~~~~ main.cpp:56:35: error: 'class std::vector<std::pair<int, int> >' has no member named 'second'; did you mean 'end'? costAPM+=v[nod_start].second; ^~~~~~ main.cpp:57:17: error: request for member 'push_back' in 'APM', which is of non-class type 'std::vector<std::pair<int, int> > [200001]' APM.push_back(make_pair(nod_start,v[nod_start])); ^~~~~~~~~ main.cpp: In function 'int main()': main.cpp:66:13: error: 'M' was not declared in this scope fin>>N>>M; ^ main.cpp:69:9: error: 'i' was not declared in this scope for(i=0;i<M;i++) ^ main.cpp:76:9: error: 'i' was not declared in this scope for(i=1;i<=N;i++) ^ main.cpp:81:9: error: 'i' was not declared in this scope for(i=1;i<=N;i++) ^ main.cpp:86:11: error: 'costAPM' was not declared in this scope fout<<costAPM<<'\n'; ^~~~~~~ main.cpp:87:15: error: request for member 'size' in 'APM', which is of non-class type 'std::vector<std::pair<int, int> > [200001]' fout<<APM.size()<<'\n'; ^~~~ main.cpp:88:9: error: 'i' was not declared in this scope for(i=0;i<APM.size();i++) ^ Non zero exit status: 1

Ceva nu functioneaza?