Borderou de evaluare (job #3254003)
Utilizator | Data | 5 noiembrie 2024 19:25:13 | |
---|---|---|---|
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:26:1: error: expected ',' or ';' before 'struct'
26 | struct Muchie {
| ^~~~~~
main.cpp:34:8: error: 'Muchie' was not declared in this scope
34 | vector<Muchie> result;
| ^~~~~~
main.cpp:34:14: error: template argument 1 is invalid
34 | vector<Muchie> result;
| ^
main.cpp:34:14: error: template argument 2 is invalid
main.cpp:59:27: error: 'Muchie' was not declared in this scope
59 | int kruskal(int n, vector<Muchie>& muchii) {
| ^~~~~~
main.cpp:59:33: error: template argument 1 is invalid
59 | int kruskal(int n, vector<Muchie>& muchii) {
| ^
main.cpp:59:33: error: template argument 2 is invalid
main.cpp: In function 'int kruskal(int, int&)':
main.cpp:65:17: error: request for member 'begin' in 'muchii', which is of non-class type 'int'
65 | sort(muchii.begin(), muchii.end());
| ^~~~~
main.cpp:65:33: error: request for member 'end' in 'muchii', which is of non-class type 'int'
65 | sort(muchii.begin(), muchii.end());
| ^~~
main.cpp:69:10: error: 'Muchie' was not declared in this scope; did you mean 'muchii'?
69 | for (Muchie e : muchii) {
| ^~~~~~
| muchii
main.cpp:77:5: error: expected primary-expression before 'return'
77 | return cost;
| ^~~~~~
main.cpp:75:6: error: expected ';' before 'return'
75 | }
| ^
| ;
76 |
77 | return cost;
| ~~~~~~
main.cpp:77:5: error: expected primary-expression before 'return'
77 | return cost;
| ^~~~~~
main.cpp:75:6: error: expected ')' before 'return'
75 | }
| ^
| )
76 |
77 | return cost;
| ~~~~~~
main.cpp:69:9: note: to match this '('
69 | for (Muchie e : muchii) {
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !