Borderou de evaluare (job #2822198)

Utilizator Teo_1101Mititelu Teodor Teo_1101 Data 23 decembrie 2021 18:19:22
Problema Componente biconexe Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In constructor 'graph::graph(int, int, std::vector<std::vector<int> >&)': main.cpp:71:9: warning: 'graph::edges' will be initialized after [-Wreorder] 71 | int edges = 0; | ^~~~~ main.cpp:68:30: warning: 'std::vector<std::vector<int> > graph::Ad' [-Wreorder] 68 | vector< vector < int > > Ad; | ^~ main.cpp:84:5: warning: when initialized here [-Wreorder] 84 | graph( int n, int m, vector < vector < int > > & ad ) : nodes(n), edges(m), Ad(ad) {} | ^~~~~ main.cpp: In constructor 'graph::graph(int, int, std::vector<std::vector<int> >&, std::vector<std::vector<int> >&)': main.cpp:89:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 89 | for( int j = 0; j < ad[i].size(); ++j){ | ~~^~~~~~~~~~~~~~ main.cpp: In member function 'void graph::DFS(int, std::vector<bool>&)': main.cpp:135:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 135 | for( int i = 0; i < Ad[nod].size(); ++i ){ | ~~^~~~~~~~~~~~~~~~ main.cpp: In member function 'void graph::DFSr(int, std::vector<bool>&, std::vector<std::vector<int> >&, std::vector<int>&)': main.cpp:143:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 143 | for( int i = 0; i < ad[nod].size(); ++i ){ | ~~^~~~~~~~~~~~~~~~ main.cpp: In member function 'std::vector<int> graph::BFS(int)': main.cpp:160:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 160 | for( int i = 0; i < Ad[x].size(); ++i ){ | ~~^~~~~~~~~~~~~~ main.cpp: In member function 'std::pair<int, std::vector<std::pair<int, int> > > graph::Kruskal()': main.cpp:199:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 199 | for( int j = 0; j < Ad[i].size(); ++j ){ | ~~^~~~~~~~~~~~~~ main.cpp: In member function 'std::vector<int> graph::Dijkstra(int)': main.cpp:237:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 237 | for( int i = 0; i < Ad[nod].size(); ++i ){ | ~~^~~~~~~~~~~~~~~~ main.cpp: In member function 'std::pair<bool, std::vector<int> > graph::BellmanFord(int)': main.cpp:271:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 271 | for( int i = 0; i < Ad[nod].size(); ++i ){ | ~~^~~~~~~~~~~~~~~~ main.cpp: In member function 'void graph::TopoDFS(int, std::vector<bool>&, std::stack<int>&)': main.cpp:298:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 298 | for( int i = 0; i < Ad[nod].size(); ++i ){ | ~~^~~~~~~~~~~~~~~~ main.cpp: In member function 'std::vector<std::vector<int> > graph::StronglyConnectedComponents()': main.cpp:319:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 319 | for( int j = 0; j < Ad[i].size(); ++j) | ~~^~~~~~~~~~~~~~ main.cpp: In member function 'void graph::BridgesDFS(int, int, std::vector<bool>&, std::vector<int>&, std::vector<int>&, std::vector<std::pair<int, int> >&)': main.cpp:345:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 345 | for( int i = 0; i < Ad[nod].size(); ++i ){ | ~~^~~~~~~~~~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms184kbCorect10
22ms184kbCorect10
32ms184kbCorect10
42ms184kbCorect10
52ms184kbCorect10
611ms1204kbCorect10
720ms2019kbCorect10
8368ms30027kbCorect10
9159ms14368kbCorect10
10206ms20164kbCorect10
Punctaj total100

Ceva nu functioneaza?