Borderou de evaluare (job #1751514)

Utilizator AhileGigel Frone Ahile Data 1 septembrie 2016 15:13:52
Problema Arbore partial de cost minim Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:23:1: error: ‘vector’ does not name a type vector <edge> edges; ^ user.cpp:24:1: error: ‘vector’ does not name a type vector <edge> rez; ^ user.cpp: In function ‘int kruskal()’: user.cpp:60:24: error: ‘edges’ was not declared in this scope for(int i = 0; i < edges.size(); i++) { ^ user.cpp:66:13: error: ‘rez’ was not declared in this scope rez.push_back(e); ^ user.cpp:76:24: error: ‘rez’ was not declared in this scope for(int i = 0; i < rez.size(); i++) { ^ user.cpp:80:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ user.cpp: In function ‘int main()’: user.cpp:91:9: error: ‘edges’ was not declared in this scope edges.push_back(e); ^ user.cpp:93:11: error: ‘edges’ was not declared in this scope sort(edges.begin(), edges.end(), [](edge a, edge b) { ^ user.cpp:95:6: error: ‘sort’ was not declared in this scope }); ^ user.cpp: In function ‘int uni(int, int)’: user.cpp:56:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ user.cpp: In function ‘int main()’: user.cpp:84:28: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen(FIN, "r",stdin); ^ user.cpp:85:29: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen(FOUT,"w",stdout); ^ user.cpp:86:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &n,&m); ^ user.cpp:90:45: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d", &e.x,&e.y,&e.cost); ^

Ceva nu functioneaza?