Borderou de evaluare (job #2810710)

Utilizator Dantelogus99Gruia Gabriel Dantelogus99 Data 30 noiembrie 2021 01:02:47
Problema Diametrul unui arbore Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 90

Raport evaluator

Compilare: main.cpp:124: warning: ignoring '#pragma region Utilitary_Functions' [-Wunknown-pragmas] 124 | #pragma region Utilitary_Functions | main.cpp:639: warning: ignoring '#pragma endregion ' [-Wunknown-pragmas] 639 | #pragma endregion | main.cpp:654: warning: ignoring '#pragma region Public_Methods_Calls' [-Wunknown-pragmas] 654 | #pragma region Public_Methods_Calls | main.cpp:788: warning: ignoring '#pragma endregion ' [-Wunknown-pragmas] 788 | #pragma endregion | main.cpp: In constructor 'Graph::Graph(int, int, bool, bool, bool)': main.cpp:56:9: warning: 'Graph::nrEdges' will be initialized after [-Wreorder] 56 | int nrEdges; | ^~~~~~~ main.cpp:51:10: warning: 'bool Graph::isDirected' [-Wreorder] 51 | bool isDirected; | ^~~~~~~~~~ main.cpp:63:5: warning: when initialized here [-Wreorder] 63 | Graph(int n = 0, int m = 0, bool d = false, bool w = false, bool f = false) : nrNodes(n), nrEdges(m), isDirected(d), isWeighted(w), isFlowing(f) {} | ^~~~~ main.cpp: In member function 'void Graph::TarjanDFS(int, std::vector<int>&, std::vector<int>&, std::stack<int>&, std::vector<bool>&, std::__cxx11::list<std::set<int> >&)': main.cpp:398:12: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 398 | if (discOrder[edge.dest]) // if the adjacent node had been processed and is part of the current traversal path | ^ main.cpp: In member function 'void Graph::HavelHakimi(std::vector<int>&, bool&)': main.cpp:509:24: warning: comparison of integer expressions of different signedness: '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 509 | if (degrees[0] > degrees.size() - 1) main.cpp: In member function 'void Graph::Dijkstra(int, std::vector<int>&)': main.cpp:578:20: warning: second operand of conditional expression has no effect [-Wunused-value] 578 | d == INF ? d : 0; | ^ main.cpp:578:25: warning: third operand of conditional expression has no effect [-Wunused-value] 578 | d == INF ? d : 0; | ^ main.cpp: In function 'int main()': main.cpp:645:16: warning: unused variable 'edges' [-Wunused-variable] 645 | int nodes, edges, start, operations; | ^~~~~ main.cpp:645:23: warning: unused variable 'start' [-Wunused-variable] 645 | int nodes, edges, start, operations; | ^~~~~ main.cpp:645:30: warning: unused variable 'operations' [-Wunused-variable] 645 | int nodes, edges, start, operations; | ^~~~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms184kbOK10
22ms184kbOK10
32ms184kbOK10
42ms184kbOK10
511ms1458kbOK10
663ms4796kbOK10
796ms6725kbOK10
8153ms10137kbOK10
997ms12058kbOK10
10201ms13168kbTime limit exceeded0
Punctaj total90

Ceva nu functioneaza?