Borderou de evaluare (job #1540098)

Utilizator iordache.bogdanIordache Ioan-Bogdan iordache.bogdan Data 2 decembrie 2015 08:19:29
Problema Radiatie Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:8:1: error: ‘Edge’ does not name a type Edge { ^ user.cpp:24:8: error: ‘Edge’ was not declared in this scope vector<Edge> edges; ^ user.cpp:24:12: error: template argument 1 is invalid vector<Edge> edges; ^ user.cpp:24:12: error: template argument 2 is invalid user.cpp:24:19: error: invalid type in declaration before ‘;’ token vector<Edge> edges; ^ user.cpp: In function ‘int getRoot(int)’: user.cpp:41:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ user.cpp: At global scope: user.cpp:43:21: error: ‘Edge’ was not declared in this scope void kruskal(vector<Edge> edges, int n, vector< pair<int, int> > *graph) { ^ user.cpp:43:25: error: template argument 1 is invalid void kruskal(vector<Edge> edges, int n, vector< pair<int, int> > *graph) { ^ user.cpp:43:25: error: template argument 2 is invalid user.cpp: In function ‘void kruskal(int, int, std::vector<std::pair<int, int> >*)’: user.cpp:45:16: error: request for member ‘begin’ in ‘edges’, which is of non-class type ‘int’ sort(edges.begin(), edges.end()); ^ user.cpp:45:31: error: request for member ‘end’ in ‘edges’, which is of non-class type ‘int’ sort(edges.begin(), edges.end()); ^ user.cpp:50:40: error: request for member ‘size’ in ‘edges’, which is of non-class type ‘int’ for (unsigned int i = 0; i < edges.size(); ++i) { ^ user.cpp:52:24: error: invalid types ‘int[unsigned int]’ for array subscript int x = edges[i].x; ^ user.cpp:53:24: error: invalid types ‘int[unsigned int]’ for array subscript int y = edges[i].y; ^ user.cpp:54:27: error: invalid types ‘int[unsigned int]’ for array subscript int cost = edges[i].cost; ^ user.cpp: At global scope: user.cpp:101:51: error: expected identifier before ‘*’ token void compAncestors(int n, vector<int> *ancestors, *ancestorsCost) { ^ user.cpp: In function ‘void compAncestors(int, std::vector<int>*, int*)’: user.cpp:106:27: error: invalid types ‘int[int]’ for array subscript

Ceva nu functioneaza?