Borderou de evaluare (job #2810700)

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

Raport evaluator

Compilare: main.cpp:120: warning: ignoring '#pragma region Utilitary_Functions' [-Wunknown-pragmas] 120 | #pragma region Utilitary_Functions | main.cpp:630: warning: ignoring '#pragma endregion ' [-Wunknown-pragmas] 630 | #pragma endregion | main.cpp:645: warning: ignoring '#pragma region Public_Methods_Calls' [-Wunknown-pragmas] 645 | #pragma region Public_Methods_Calls | main.cpp:779: warning: ignoring '#pragma endregion ' [-Wunknown-pragmas] 779 | #pragma endregion | main.cpp: In constructor 'Graph::Graph(int, int, bool, bool, bool)': main.cpp:52:9: warning: 'Graph::nrEdges' will be initialized after [-Wreorder] 52 | int nrEdges; | ^~~~~~~ main.cpp:47:10: warning: 'bool Graph::isDirected' [-Wreorder] 47 | bool isDirected; | ^~~~~~~~~~ main.cpp:59:5: warning: when initialized here [-Wreorder] 59 | 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:389:12: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 389 | 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:500: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] 500 | if (degrees[0] > degrees.size() - 1) main.cpp: In member function 'void Graph::Dijkstra(int, std::vector<int>&)': main.cpp:569:20: warning: second operand of conditional expression has no effect [-Wunused-value] 569 | d == INF ? d : 0; | ^ main.cpp:569:25: warning: third operand of conditional expression has no effect [-Wunused-value] 569 | d == INF ? d : 0; | ^ main.cpp: In function 'int main()': main.cpp:636:16: warning: unused variable 'edges' [-Wunused-variable] 636 | int nodes, edges, start, operations; | ^~~~~ main.cpp:636:23: warning: unused variable 'start' [-Wunused-variable] 636 | int nodes, edges, start, operations; | ^~~~~ main.cpp:636:30: warning: unused variable 'operations' [-Wunused-variable] 636 | int nodes, edges, start, operations; | ^~~~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms184kbOK10
22ms184kbOK10
32ms184kbOK10
42ms184kbOK10
511ms1429kbOK10
663ms4796kbOK10
796ms6725kbOK10
8154ms10137kbOK10
997ms12087kbOK10
10201ms13168kbTime limit exceeded0
Punctaj total90

Ceva nu functioneaza?