Borderou de evaluare (job #3373109)
| Utilizator | Data | 6 noiembrie 2026 09:00:39 | |
|---|---|---|---|
| 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:12:1: error: 's' does not name a type
12 | s
| ^
main.cpp:15:7: error: 'NMAX' was not declared in this scope; did you mean 'MMAX'?
15 | int p[NMAX + 1]; //p[i] parintele nodului i
| ^~~~
| MMAX
main.cpp:16:8: error: 'NMAX' was not declared in this scope; did you mean 'MMAX'?
16 | int sz[NMAX + 1]; //sz[i] numarul de noduri din arborele cu radacina in i
| ^~~~
| MMAX
main.cpp: In function 'int find(int)':
main.cpp:21:15: error: 'p' was not declared in this scope
21 | while(x != p[x]) {
| ^
main.cpp: In function 'void Union(int, int)':
main.cpp:33:12: error: 'sz' was not declared in this scope
33 | if(sz[x] < sz[y]) {
| ^~
main.cpp:34:13: error: 'p' was not declared in this scope
34 | p[x] = y;
| ^
main.cpp:37:13: error: 'p' was not declared in this scope
37 | p[y] = x;
| ^
main.cpp: In function 'int main()':
main.cpp:53:9: error: 'p' was not declared in this scope
53 | p[i] = i;
| ^
main.cpp:54:9: error: 'sz' was not declared in this scope
54 | sz[i] = 1;
| ^~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
