Borderou de evaluare (job #2955136)
Utilizator | Data | 16 decembrie 2022 13:49:47 | |
---|---|---|---|
Problema | Oracol | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:8:1: error: expected ',' or ';' before 'const'
8 | const int nmax = 1e3 + 5;
| ^~~~~
main.cpp:13:13: error: 'nmax' was not declared in this scope
13 | muchii edge[nmax * nmax];
| ^~~~
main.cpp:13:20: error: 'nmax' was not declared in this scope
13 | muchii edge[nmax * nmax];
| ^~~~
main.cpp:14:11: error: 'nmax' was not declared in this scope
14 | int sizes[nmax], parent[nmax];
| ^~~~
main.cpp:14:25: error: 'nmax' was not declared in this scope
14 | int sizes[nmax], parent[nmax];
| ^~~~
main.cpp: In function 'int findx(int)':
main.cpp:17:13: error: 'parent' was not declared in this scope
17 | if(x == parent[x])
| ^~~~~~
main.cpp:19:12: error: 'parent' was not declared in this scope
19 | return parent[x] = findx(parent[x]);
| ^~~~~~
main.cpp: In function 'void unite(int, int)':
main.cpp:27:8: error: 'sizes' was not declared in this scope; did you mean 'size_t'?
27 | if(sizes[x] > sizes[y])
| ^~~~~
| size_t
main.cpp:29:5: error: 'sizes' was not declared in this scope; did you mean 'size_t'?
29 | sizes[y] += sizes[x];
| ^~~~~
| size_t
main.cpp:30:5: error: 'parent' was not declared in this scope
30 | parent[x] = parent[y];
| ^~~~~~
main.cpp: In function 'int main()':
main.cpp:44:13: error: 'edge' was not declared in this scope
44 | edge[++total] = {i, j, c};
| ^~~~
main.cpp:47:10: error: 'edge' was not declared in this scope
47 | sort(edge + 1, edge + total + 1, cmp);
| ^~~~
main.cpp:49:9: error: 'parent' was not declared in this scope
49 | parent[i] = i, sizes[i] = 1;
| ^~~~~~
main.cpp:49:24: error: 'sizes' was not declared in this scope; did you mean 'size_t'?
49 | parent[i] = i, sizes[i] = 1;
| ^~~~~
| size_t
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !