Pagini recente » Borderou de evaluare (job #2846785) | Borderou de evaluare (job #2637261) | Borderou de evaluare (job #1294664) | Borderou de evaluare (job #1378611) | Borderou de evaluare (job #3178812)
Borderou de evaluare (job #3178812)
Raport evaluator
Compilare:
main.cpp: In function 'void afisare(std::vector<std::vector<int> >&)':
main.cpp:20:28: warning: loop variable 'neighbor' creates a copy from type 'const std::vector<int>' [-Wrange-loop-construct]
20 | for (const vector<int> neighbor : neighbors)
| ^~~~~~~~
main.cpp:20:28: note: use reference type to prevent copying
20 | for (const vector<int> neighbor : neighbors)
| ^~~~~~~~
| &
main.cpp: In member function 'void graf::island_mark(int, int)':
main.cpp:108:32: warning: loop variable 'neigbor' creates a copy from type 'const std::vector<int>' [-Wrange-loop-construct]
108 | for (const vector<int> neigbor : neighbors) /// visiting island neighbors
| ^~~~~~~
main.cpp:108:32: note: use reference type to prevent copying
108 | for (const vector<int> neigbor : neighbors) /// visiting island neighbors
| ^~~~~~~
| &
main.cpp: In constructor 'graf::graf(std::vector<std::vector<int> >&)':
main.cpp:149:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
149 | for(int i = 0; i < neighbors.size(); ++i)
| ~~^~~~~~~~~~~~~~~~~~
main.cpp:150:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
150 | for(int j = 0; j < neighbors[i].size(); ++j)
| ~~^~~~~~~~~~~~~~~~~~~~~
main.cpp: In constructor 'graf::graf(int, std::vector<std::vector<int> >&)':
main.cpp:157:32: warning: loop variable 'neighbor' creates a copy from type 'const std::vector<int>' [-Wrange-loop-construct]
157 | for (const vector<int> neighbor : neighbors)
| ^~~~~~~~
main.cpp:157:32: note: use reference type to prevent copying
157 | for (const vector<int> neighbor : neighbors)
| ^~~~~~~~
| &
main.cpp: In member function 'void graf::afisare()':
main.cpp:189:32: warning: loop variable 'neighbor' creates a copy from type 'const std::vector<int>' [-Wrange-loop-construct]
189 | for (const vector<int> neighbor : this->graph)
| ^~~~~~~~
main.cpp:189:32: note: use reference type to prevent copying
189 | for (const vector<int> neighbor : this->graph)
| ^~~~~~~~
| &
main.cpp: In member function 'std::vector<int> graf::topologicalSort()':
main.cpp:256:22: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
256 | if(sol.size()==nodes)/// checking if is not a cycle in graph
| ~~~~~~~~~~^~~~~~~
main.cpp: In member function 'int graf::shortestBridge()':
main.cpp:313:40: warning: loop variable 'neighbor' creates a copy from type 'const std::vector<int>' [-Wrange-loop-construct]
313 | for (const vector<int> neighbor : neighbors)
| ^~~~~~~~
main.cpp:313:40: note: use reference type to prevent copying
313 | for (const vector<int> neighbor : neighbors)
| ^~~~~~~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 0ms | 303kb | Cost prea mare | 0 | 0 |
11 | 0ms | 303kb | Cost prea mare | 0 |
2 | 0ms | 303kb | Cost prea mare | 0 | 0 |
12 | 0ms | 303kb | Corect | 5 |
3 | 1ms | 561kb | Cost prea mare | 0 | 0 |
13 | 5ms | 1343kb | Cost prea mare | 0 |
4 | 1ms | 557kb | Cost prea mare | 0 | 0 |
14 | 2ms | 819kb | Cost prea mare | 0 |
5 | 2ms | 557kb | Cost prea mare | 0 | 0 |
15 | 3ms | 823kb | Cost prea mare | 0 |
6 | 187ms | 22478kb | Cost prea mare | 0 | 0 |
16 | 0ms | 303kb | Corect | 5 |
7 | 147ms | 19009kb | Cost prea mare | 0 | 0 |
17 | 0ms | 303kb | Corect | 5 |
8 | 128ms | 17428kb | Cost prea mare | 0 | 0 |
18 | 49ms | 12234kb | Cost prea mare | 0 |
9 | 173ms | 21778kb | Cost prea mare | 0 | 0 |
19 | 44ms | 11460kb | Cost prea mare | 0 |
10 | 188ms | 22675kb | Cost prea mare | 0 | 0 |
20 | 48ms | 12087kb | Cost prea mare | 0 |
Punctaj total | 0 |