Borderou de evaluare (job #3321842)
| Utilizator | Data | 11 noiembrie 2025 14:22:58 | |
|---|---|---|---|
| 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:13:1: error: 'vector' does not name a type
13 | vector<int>t(n+1,0);
| ^~~~~~
main.cpp:14:1: error: 'vector' does not name a type
14 | vector<int>h(n+1,1);
| ^~~~~~
main.cpp:15:1: error: 'vector' does not name a type
15 | vector<Muchie>v,rez;
| ^~~~~~
main.cpp: In function 'int Find(int)':
main.cpp:20:11: error: 't' was not declared in this scope
20 | while(t[x]!=0){
| ^
main.cpp: In function 'void Union(int, int)':
main.cpp:30:12: error: 'h' was not declared in this scope
30 | if(h[x]<h[y])
| ^
main.cpp:31:13: error: 't' was not declared in this scope
31 | t[x]=y;
| ^
main.cpp:33:13: error: 't' was not declared in this scope
33 | t[y]=x;
| ^
main.cpp:35:13: error: 't' was not declared in this scope
35 | t[y]=x;
| ^
main.cpp: In function 'int main()':
main.cpp:45:9: error: 'v' was not declared in this scope
45 | v.push_back({x,y,c});
| ^
main.cpp:47:10: error: 'v' was not declared in this scope
47 | sort(v.begin(),v.end(),cmp);
| ^
main.cpp:52:13: error: 'rez' was not declared in this scope
52 | rez.push_back(muchie);
| ^~~
main.cpp:57:21: error: 'rez' was not declared in this scope
57 | for(auto muchie:rez){
| ^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
