Pagini recente » Borderou de evaluare (job #2710944) | Borderou de evaluare (job #1361366) | Borderou de evaluare (job #1695164) | Borderou de evaluare (job #2316205) | Borderou de evaluare (job #3180178)
Borderou de evaluare (job #3180178)
Raport evaluator
Compilare:
main.cpp: In function 'void afisare(std::vector<std::vector<int> >&)':
main.cpp:22:28: warning: loop variable 'neighbor' creates a copy from type 'const std::vector<int>' [-Wrange-loop-construct]
22 | for (const vector<int> neighbor : neighbors)
| ^~~~~~~~
main.cpp:22:28: note: use reference type to prevent copying
22 | for (const vector<int> neighbor : neighbors)
| ^~~~~~~~
| &
main.cpp: In member function 'void graf::island_mark(int, int)':
main.cpp:110:32: warning: loop variable 'neigbor' creates a copy from type 'const std::vector<int>' [-Wrange-loop-construct]
110 | for (const vector<int> neigbor : neighbors) /// visiting island neighbors
| ^~~~~~~
main.cpp:110:32: note: use reference type to prevent copying
110 | for (const vector<int> neigbor : neighbors) /// visiting island neighbors
| ^~~~~~~
| &
main.cpp: In constructor 'graf::graf(std::vector<std::vector<int> >&)':
main.cpp:151:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
151 | for(int i = 0; i < neighbors.size(); ++i)
| ~~^~~~~~~~~~~~~~~~~~
main.cpp:152:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
152 | for(int j = 0; j < neighbors[i].size(); ++j)
| ~~^~~~~~~~~~~~~~~~~~~~~
main.cpp: In constructor 'graf::graf(int, std::vector<std::vector<int> >&)':
main.cpp:159:32: warning: loop variable 'neighbor' creates a copy from type 'const std::vector<int>' [-Wrange-loop-construct]
159 | for (const vector<int> neighbor : neighbors)
| ^~~~~~~~
main.cpp:159:32: note: use reference type to prevent copying
159 | for (const vector<int> neighbor : neighbors)
| ^~~~~~~~
| &
main.cpp: In member function 'void graf::afisare()':
main.cpp:191:32: warning: loop variable 'neighbor' creates a copy from type 'const std::vector<int>' [-Wrange-loop-construct]
191 | for (const vector<int> neighbor : this->graph)
| ^~~~~~~~
main.cpp:191:32: note: use reference type to prevent copying
191 | for (const vector<int> neighbor : this->graph)
| ^~~~~~~~
| &
main.cpp: In member function 'std::vector<int> graf::topologicalSort()':
main.cpp:258:22: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
258 | if(sol.size()==nodes)/// checking if is not a cycle in graph
| ~~~~~~~~~~^~~~~~~
main.cpp: In member function 'int graf::shortestBridge()':
main.cpp:315:40: warning: loop variable 'neighbor' creates a copy from type 'const std::vector<int>' [-Wrange-loop-construct]
315 | for (const vector<int> neighbor : neighbors)
| ^~~~~~~~
main.cpp:315:40: note: use reference type to prevent copying
315 | for (const vector<int> neighbor : neighbors)
| ^~~~~~~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 303kb | Corect! | 2 |
2 | 0ms | 303kb | Corect! | 2 |
3 | 0ms | 303kb | Corect! | 2 |
4 | 0ms | 303kb | Corect! | 2 |
5 | 0ms | 303kb | Corect! | 2 |
6 | 0ms | 303kb | Corect! | 2 |
7 | 1ms | 557kb | Corect! | 2 |
8 | 1ms | 557kb | Corect! | 2 |
9 | 1ms | 557kb | Corect! | 2 |
10 | 1ms | 557kb | Corect! | 2 |
11 | 0ms | 303kb | Corect! | 8 |
12 | 0ms | 303kb | Corect! | 8 |
13 | 0ms | 303kb | Corect! | 8 |
14 | 0ms | 303kb | Corect! | 8 |
15 | 1ms | 303kb | Corect! | 8 |
16 | 1ms | 303kb | Corect! | 8 |
17 | 2ms | 557kb | Corect! | 8 |
18 | 2ms | 557kb | Corect! | 8 |
19 | 2ms | 557kb | Corect! | 8 |
20 | 2ms | 557kb | Corect! | 8 |
Punctaj total | 100 |