Borderou de evaluare (job #2500609)

Utilizator Marcel.DragosMarcel Dragos Ignat Marcel.Dragos Data 28 noiembrie 2019 12:54:44
Problema Algoritmul lui Dijkstra Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:5:6: error: 'vector' in namespace 'std' does not name a template type std::vector<std::vector<int>> shortest_path_all(const std::vector<std::vector<edge>>& graph) { ^~~~~~ main.cpp: In function 'int main()': main.cpp:58:5: error: 'vector' is not a member of 'std' std::vector<std::vector<edge>> graph; ^~~ main.cpp:58:17: error: 'vector' is not a member of 'std' std::vector<std::vector<edge>> graph; ^~~ main.cpp:58:29: error: 'edge' was not declared in this scope std::vector<std::vector<edge>> graph; ^~~~ main.cpp:58:36: error: 'graph' was not declared in this scope std::vector<std::vector<edge>> graph; ^~~~~ main.cpp:59:5: error: 'vector' is not a member of 'std' std::vector<edge> v; ^~~ main.cpp:59:23: error: 'v' was not declared in this scope std::vector<edge> v; ^ main.cpp:71:5: error: 'vector' is not a member of 'std' std::vector<std::vector<int>> cost_matrix; ^~~ main.cpp:71:17: error: 'vector' is not a member of 'std' std::vector<std::vector<int>> cost_matrix; ^~~ main.cpp:71:29: error: expected primary-expression before 'int' std::vector<std::vector<int>> cost_matrix; ^~~ main.cpp:72:5: error: 'cost_matrix' was not declared in this scope cost_matrix = shortest_path_all(graph); ^~~~~~~~~~~ main.cpp:72:42: error: 'shortest_path_all' was not declared in this scope cost_matrix = shortest_path_all(graph); ^ main.cpp:50:39: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("dijkstra.in", "r", stdin); ^ main.cpp:51:41: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("dijkstra.out", "w", stdout); ^ main.cpp:56:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &n, &m); ^ main.cpp:65:43: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d", &src, &dst, &cost); ^ Non zero exit status: 1

Ceva nu functioneaza?