Pagini recente » Borderou de evaluare (job #1723339) | Borderou de evaluare (job #340255) | Borderou de evaluare (job #2549997) | Borderou de evaluare (job #2318201) | Borderou de evaluare (job #3178500)
Borderou de evaluare (job #3178500)
Raport evaluator
Compilare:
main.cpp: In function 'void afisare(std::vector<std::vector<int> >&)':
main.cpp:19:28: warning: loop variable 'neighbor' creates a copy from type 'const std::vector<int>' [-Wrange-loop-construct]
19 | for (const vector<int> neighbor : neighbors)
| ^~~~~~~~
main.cpp:19:28: note: use reference type to prevent copying
19 | for (const vector<int> neighbor : neighbors)
| ^~~~~~~~
| &
main.cpp: In member function 'void graf::island_mark(int, int)':
main.cpp:107:32: warning: loop variable 'neigbor' creates a copy from type 'const std::vector<int>' [-Wrange-loop-construct]
107 | for (const vector<int> neigbor : neighbors) /// visiting island neighbors
| ^~~~~~~
main.cpp:107:32: note: use reference type to prevent copying
107 | for (const vector<int> neigbor : neighbors) /// visiting island neighbors
| ^~~~~~~
| &
main.cpp: In constructor 'graf::graf(std::vector<std::vector<int> >&)':
main.cpp:148:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
148 | for(int i = 0; i < neighbors.size(); ++i)
| ~~^~~~~~~~~~~~~~~~~~
main.cpp:149:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
149 | for(int j = 0; j < neighbors[i].size(); ++j)
| ~~^~~~~~~~~~~~~~~~~~~~~
main.cpp: In constructor 'graf::graf(int, std::vector<std::vector<int> >&)':
main.cpp:156:32: warning: loop variable 'neighbor' creates a copy from type 'const std::vector<int>' [-Wrange-loop-construct]
156 | for (const vector<int> neighbor : neighbors)
| ^~~~~~~~
main.cpp:156:32: note: use reference type to prevent copying
156 | for (const vector<int> neighbor : neighbors)
| ^~~~~~~~
| &
main.cpp: In member function 'void graf::afisare()':
main.cpp:188:32: warning: loop variable 'neighbor' creates a copy from type 'const std::vector<int>' [-Wrange-loop-construct]
188 | for (const vector<int> neighbor : this->graph)
| ^~~~~~~~
main.cpp:188:32: note: use reference type to prevent copying
188 | for (const vector<int> neighbor : this->graph)
| ^~~~~~~~
| &
main.cpp: In member function 'std::vector<int> graf::topologicalSort()':
main.cpp:255:22: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
255 | if(sol.size()==nodes)/// checking if is not a cycle in graph
| ~~~~~~~~~~^~~~~~~
main.cpp: In member function 'int graf::shortestBridge()':
main.cpp:312:40: warning: loop variable 'neighbor' creates a copy from type 'const std::vector<int>' [-Wrange-loop-construct]
312 | for (const vector<int> neighbor : neighbors)
| ^~~~~~~~
main.cpp:312:40: note: use reference type to prevent copying
312 | for (const vector<int> neighbor : neighbors)
| ^~~~~~~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 0ms | 303kb | Corect | 5 | 10 |
11 | 0ms | 303kb | Corect | 5 |
2 | 0ms | 303kb | Corect | 5 | 10 |
12 | 0ms | 303kb | Corect | 5 |
3 | 3ms | 561kb | Corect | 5 | 10 |
13 | 9ms | 1605kb | Corect | 5 |
4 | 3ms | 557kb | Corect | 5 | 10 |
14 | 7ms | 1007kb | Corect | 5 |
5 | 4ms | 557kb | Corect | 5 | 10 |
15 | 5ms | 1081kb | Corect | 5 |
6 | 143ms | 18862kb | Drum invalid | 0 | 0 |
16 | 0ms | 303kb | Corect | 5 |
7 | 127ms | 17514kb | Corect | 5 | 10 |
17 | 0ms | 303kb | Corect | 5 |
8 | 112ms | 16216kb | Corect | 5 | 0 |
18 | 29ms | 11689kb | Drum invalid | 0 |
9 | 148ms | 19091kb | Corect | 5 | 0 |
19 | 29ms | 11284kb | Drum invalid | 0 |
10 | 148ms | 19005kb | Drum invalid | 0 | 0 |
20 | 29ms | 11300kb | Drum invalid | 0 |
Punctaj total | 60 |