Borderou de evaluare (job #2425466)

Utilizator bazycristi21Bazavan Cristian bazycristi21 Data 24 mai 2019 20:38:10
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:23:5: error: 'vector' was not declared in this scope vector<vector<int>> G(n+1); ^~~~~~ main.cpp:23:19: error: expected primary-expression before 'int' vector<vector<int>> G(n+1); ^~~ main.cpp:24:12: error: expected primary-expression before 'int' vector<int>sol; ^~~ main.cpp:25:18: error: expected primary-expression before '>' token vector<Muchie>A(m+1); ^ main.cpp:25:24: error: 'A' was not declared in this scope vector<Muchie>A(m+1); ^ main.cpp:27:12: error: expected primary-expression before 'int' vector<int> comp(n+1); ^~~ main.cpp:30:9: error: 'G' was not declared in this scope G[i].push_back(i); ^ main.cpp:31:9: error: 'comp' was not declared in this scope comp[i]=i; ^~~~ main.cpp:41:12: error: 'comp' was not declared in this scope if(comp[A[i].nod1]!=comp[A[i].nod2]) ^~~~ main.cpp:44:13: error: 'sol' was not declared in this scope sol.push_back(i); ^~~ main.cpp:45:16: error: 'G' was not declared in this scope if(G[comp[A[i].nod1]].size()>G[comp[A[i].nod2]].size()) ^ main.cpp:54:16: error: 'G' was not declared in this scope if(G[comp[A[i].nod1]].size()<=G[comp[A[i].nod2]].size()) ^ main.cpp:67:17: error: 'sol' was not declared in this scope for(auto i: sol) ^~~ main.cpp:21:13: warning: unused variable 'x' [-Wunused-variable] int n,m,x; ^ Non zero exit status: 1

Ceva nu functioneaza?