Borderou de evaluare (job #2813107)
Raport evaluator
Compilare:
main.cpp:15:28: warning: integer overflow in expression of type 'int' results in '2147483647' [-Woverflow]
15 | const int INF = (1<<31)-1;
| ~~~~~~~^~
main.cpp: In constructor 'graph::graph(int, int, std::vector<std::vector<int> >&)':
main.cpp:42:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
42 | 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:50:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
50 | for( int j = 0; j < ad[i].size(); ++j){
| ~~^~~~~~~~~~~~~~
main.cpp: In member function 'void graph::DFS(int, bool*)':
main.cpp:79:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
79 | 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:87:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
87 | for( int i = 0; i < ad[nod].size(); ++i ){
| ~~^~~~~~~~~~~~~~~~
main.cpp: In member function 'void graph::BFS(int)':
main.cpp:104:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
104 | for( int i = 0; i < Ad[x].size(); ++i ){
| ~~^~~~~~~~~~~~~~
main.cpp: In member function 'void graph::Kruskal()':
main.cpp:188: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]
188 | for( int i = 0; i < Sol.size(); ++i )
| ~~^~~~~~~~~~~~
main.cpp: In member function 'void graph::Dijkstra(int)':
main.cpp:205:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
205 | for( int i = 0; i < Ad[nod].size(); ++i ){
| ~~^~~~~~~~~~~~~~~~
main.cpp: In member function 'void graph::BellmanFord(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 'void graph::TopoDFS(int, std::vector<bool>&, std::stack<int>&)':
main.cpp:271:23: 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 'std::vector<std::vector<int> > graph::StronglyConnectedComponents()':
main.cpp:296:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
296 | for( int j = 0; j < Ad[i].size(); ++j)
| ~~^~~~~~~~~~~~~~
main.cpp: In member function 'int** graph::RoyFloyd()':
main.cpp:329:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
329 | for( int j = 0; j < Ad[i].size(); ++j )
| ~~^~~~~~~~~~~~~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 184kb | OK | 10 |
2 | 2ms | 184kb | OK | 10 |
3 | 2ms | 184kb | Incorect | 0 |
4 | 2ms | 184kb | Incorect | 0 |
5 | 2ms | 184kb | Incorect | 0 |
6 | 2ms | 184kb | Incorect | 0 |
7 | 6ms | 339kb | Incorect | 0 |
8 | 6ms | 409kb | Incorect | 0 |
9 | 6ms | 372kb | Incorect | 0 |
10 | 11ms | 532kb | Incorect | 0 |
Punctaj total | 20 |