Borderou de evaluare (job #2801894)

Utilizator Teo_1101Mititelu Teodor Teo_1101 Data 17 noiembrie 2021 00:40:28
Problema Sortare topologica 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:39:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 39 | 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:47:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 47 | for( int j = 0; j < ad[i].size(); ++j){ | ~~^~~~~~~~~~~~~~ main.cpp: In member function 'void graph::DFS(int, bool*)': main.cpp:73:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 73 | for( int i = 0; i < Ad[nod].size(); ++i ){ | ~~^~~~~~~~~~~~~~~~ main.cpp: In member function 'void graph::BFS(int)': main.cpp:90:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 90 | for( int i = 0; i < Ad[x].size(); ++i ){ | ~~^~~~~~~~~~~~~~ main.cpp: In member function 'void graph::Kruskal()': main.cpp:174: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] 174 | for( int i = 0; i < Sol.size(); ++i ) | ~~^~~~~~~~~~~~ main.cpp: In member function 'void graph::Dijkstra(int)': main.cpp:191:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 191 | for( int i = 0; i < Ad[nod].size(); ++i ){ | ~~^~~~~~~~~~~~~~~~ main.cpp: In member function 'void graph::BellmanFord(int)': main.cpp:223:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 223 | 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:257:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 257 | for( int i = 0; i < Ad[nod].size(); ++i ){ | ~~^~~~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:280:21: warning: unused variable 'v' [-Wunused-variable] 280 | int N, M, x, y, v; | ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
11ms184kbRaspuns gresit0
21ms184kbRaspuns gresit0
31ms184kbRaspuns gresit0
41ms184kbRaspuns gresit0
55ms700kbRaspuns gresit0
69ms1052kbRaspuns gresit0
728ms2424kbRaspuns gresit0
844ms3371kbRaspuns gresit0
998ms6103kbRaspuns gresit0
10247ms7901kbRaspuns gresit0
Punctaj total0

Ceva nu functioneaza?