Borderou de evaluare (job #2820653)

Utilizator cosminradu1760Cosmin-Andrei Radu cosminradu1760 Data 21 decembrie 2021 00:03:52
Problema Ciclu Eulerian Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 30

Raport evaluator

Compilare: main.cpp: In member function 'void Graph::bfs(int)': main.cpp:209:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 209 | for(int i = 1; i < distances.size(); i++) | ~~^~~~~~~~~~~~~~~~~~ main.cpp: In member function 'void Graph::stronglyConnectedComponents()': main.cpp:295:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 295 | for(int i = 0 ; i < sccs.size(); i++) | ~~^~~~~~~~~~~~~ main.cpp:298:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 298 | for(int j = 0; j < sz; j++) | ^~~ main.cpp:300:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 300 | fout<<"\n"; | ^~~~ main.cpp: In member function 'void Graph::HH()': main.cpp:366:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 366 | if(v > seq.size()) | ~~^~~~~~~~~~~~ main.cpp: In member function 'void Graph::MST()': main.cpp:430:23: warning: passing NULL to non-pointer argument 1 of 'void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::value_type = int]' [-Wconversion-null] 430 | mst.push_back(NULL); | ^~~~ In file included from /usr/include/c++/10/vector:67, from /usr/include/c++/10/queue:61, from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:86, from main.cpp:1: /usr/include/c++/10/bits/stl_vector.h:1203:30: note: declared here 1203 | push_back(value_type&& __x) | ~~~~~~~~~~~~~^~~ main.cpp: In member function 'int Graph::minWeightVertex(std::vector<int>&, std::vector<int>&)': main.cpp:417:12: warning: 'indexOfMin' may be used uninitialized in this function [-Wmaybe-uninitialized] 417 | return indexOfMin; | ^~~~~~~~~~ main.cpp: In member function 'void Graph::MST()': main.cpp:448:28: warning: 'indexOfMin' may be used uninitialized in this function [-Wmaybe-uninitialized] 448 | mst[temp1] = nextVertex;
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
12ms188kbRaspuns corect!1010
22ms184kbRaspuns corect!1010
3518ms741kbRaspuns corect!1010
4803ms1032kbTime limit exceeded00
5803ms2674kbTime limit exceeded00
6800ms9916kbTime limit exceeded00
7802ms10481kbTime limit exceeded00
8800ms14704kbTime limit exceeded0
9802ms9490kbTime limit exceeded00
10801ms18210kbTime limit exceeded0
Punctaj total30

Ceva nu functioneaza?