Borderou de evaluare (job #2801948)

Utilizator Teo_1101Mititelu Teodor Teo_1101 Data 17 noiembrie 2021 11:14:36
Problema Componente tare conexe Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp:14:28: warning: integer overflow in expression of type 'int' results in '2147483647' [-Woverflow] 14 | const int INF = (1<<31)-1; | ~~~~~~~^~ main.cpp: In constructor 'graph::graph(int, int, std::vector<std::vector<int> >&)': main.cpp:41:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 41 | for( int j = 0; j < ad[i].size(); ++j) | ~~^~~~~~~~~~~~~~ main.cpp: In constructor 'graph::graph(int, int, std::vector<std::vector<int> >&, std::vector<std::vector<int> >&)': main.cpp:49:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 49 | for( int j = 0; j < ad[i].size(); ++j){ | ~~^~~~~~~~~~~~~~ main.cpp: In member function 'void graph::DFS(int, bool*)': main.cpp:75:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 75 | for( int i = 0; i < Ad[nod].size(); ++i ){ | ~~^~~~~~~~~~~~~~~~ main.cpp: In member function 'void graph::DFS_r(int, std::vector<bool>&, std::vector<std::vector<int> >&, std::vector<int>&)': main.cpp:83:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 83 | for( int i = 0; i < ad[nod].size(); ++i ){ | ~~^~~~~~~~~~~~~~~~ main.cpp: In member function 'void graph::BFS(int)': main.cpp:100:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 100 | for( int i = 0; i < Ad[x].size(); ++i ){ | ~~^~~~~~~~~~~~~~ main.cpp: In member function 'void graph::Kruskal()': main.cpp:184:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 184 | for( int i = 0; i < Sol.size(); ++i ) | ~~^~~~~~~~~~~~ main.cpp: In member function 'void graph::Dijkstra(int)': main.cpp:201:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 201 | for( int i = 0; i < Ad[nod].size(); ++i ){ | ~~^~~~~~~~~~~~~~~~ main.cpp: In member function 'void graph::BellmanFord(int)': main.cpp:233:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 233 | 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:267:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 267 | for( int i = 0; i < Ad[nod].size(); ++i ){ | ~~^~~~~~~~~~~~~~~~ main.cpp: In member function 'std::vector<std::vector<int> > graph::StronglyConnectedComponents()': main.cpp:292:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 292 | for( int j = 0; j < Ad[i].size(); ++j) | ~~^~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:329:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 329 | for( int i = 0; i < scc.size(); ++i ){ | ~~^~~~~~~~~~~~ main.cpp:330:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 330 | for( int j = 0; j < scc[i].size(); ++j ) | ~~^~~~~~~~~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
12ms204kbNumar de componente gresit00
21ms184kbCorect10
31ms184kbNumar de componente gresit0
411ms307kbNumar de componente gresit00
510ms643kbNumar de componente gresit0
623ms1224kbNumar de componente gresit0
729ms2465kbNumar de componente gresit00
8117ms5632kbNumar de componente gresit0
9172ms13045kbNumar de componente gresit0
10220ms19652kbNumar de componente gresit00
Punctaj total0

Ceva nu functioneaza?