Borderou de evaluare (job #3337520)
| Utilizator | Data | 28 ianuarie 2026 15:17:16 | |
|---|---|---|---|
| Problema | Desen | Status | done |
| Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp:20:1: error: 'vector' does not name a type
20 | vector<muchie> a;
| ^~~~~~
main.cpp: In function 'void completare(int, int, int)':
main.cpp:36:9: error: 'a' was not declared in this scope
36 | a.push_back({i,n,lungime(p[i].x,p[i].y,x,y)});
| ^
main.cpp:34:11: warning: unused variable 'j' [-Wunused-variable]
34 | int i,j;
| ^
main.cpp: In function 'void kruskal(int)':
main.cpp:74:5: error: 'vector' was not declared in this scope
74 | vector<muchie>mst;
| ^~~~~~
main.cpp:5:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
4 | #include <iomanip>
+++ |+#include <vector>
5 | #define NMAX 1002
main.cpp:74:18: error: expected primary-expression before '>' token
74 | vector<muchie>mst;
| ^
main.cpp:74:19: error: 'mst' was not declared in this scope
74 | vector<muchie>mst;
| ^~~
main.cpp:78:10: error: 'a' was not declared in this scope
78 | sort(a.begin(),a.end(),compar);
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
