Borderou de evaluare (job #3332646)
| Utilizator | Data | 8 ianuarie 2026 10:50:12 | |
|---|---|---|---|
| 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 'void find_root(int)':
main.cpp:11:16: error: return-statement with a value, in function returning 'void' [-fpermissive]
11 | return a;
| ^
main.cpp:12:33: error: void value not ignored as it ought to be
12 | return parent[a] = find_root(parent[a]);
| ~~~~~~~~~^~~~~~~~~~~
main.cpp: In function 'void unire(int, int)':
main.cpp:16:27: error: void value not ignored as it ought to be
16 | int root_a = find_root(a);
| ~~~~~~~~~^~~
main.cpp:17:27: error: void value not ignored as it ought to be
17 | int root_b = find_root(b);
| ~~~~~~~~~^~~
main.cpp: In function 'int main()':
main.cpp:38:13: error: 'update' was not declared in this scope
38 | update()
| ^~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
