Borderou de evaluare (job #3300929)
| Utilizator | Data | 20 iunie 2025 11:06:31 | |
|---|---|---|---|
| Problema | Paduri de multimi disjuncte | Status | done |
| Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int find_root(int)':
main.cpp:11:8: error: 'father' was not declared in this scope
11 | if(father[son]<=-1)
| ^~~~~~
main.cpp:15:26: error: 'father' was not declared in this scope
15 | int root = find_root(father[son]);
| ^~~~~~
main.cpp: At global scope:
main.cpp:20:6: error: variable or field 'Union' declared void
20 | void Union(vector<int> &father,int x, int y)
| ^~~~~
main.cpp:20:12: error: 'vector' was not declared in this scope
20 | void Union(vector<int> &father,int x, int y)
| ^~~~~~
main.cpp:2:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
1 | #include <fstream>
+++ |+#include <vector>
2 |
main.cpp:20:19: error: expected primary-expression before 'int'
20 | void Union(vector<int> &father,int x, int y)
| ^~~
main.cpp:20:32: error: expected primary-expression before 'int'
20 | void Union(vector<int> &father,int x, int y)
| ^~~
main.cpp:20:39: error: expected primary-expression before 'int'
20 | void Union(vector<int> &father,int x, int y)
| ^~~
main.cpp: In function 'int main()':
main.cpp:49:3: error: 'vector' was not declared in this scope
49 | vector<int>father(n+1,-1);
| ^~~~~~
main.cpp:49:3: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
main.cpp:49:10: error: expected primary-expression before 'int'
49 | vector<int>father(n+1,-1);
| ^~~
main.cpp:54:15: error: 'father' was not declared in this scope
54 | Union(father,x , y);
| ^~~~~~
main.cpp:54:9: error: 'Union' was not declared in this scope; did you mean 'union'?
54 | Union(father,x , y);
| ^~~~~
| union
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
