Pagini recente » Borderou de evaluare (job #754830) | Borderou de evaluare (job #1571469) | Borderou de evaluare (job #122663) | Borderou de evaluare (job #1605322) | Borderou de evaluare (job #3178177)
Borderou de evaluare (job #3178177)
Raport evaluator
Compilare:
main.cpp: In function 'void afisare(std::vector<std::vector<int> >&)':
main.cpp:17:28: warning: loop variable 'neighbor' creates a copy from type 'const std::vector<int>' [-Wrange-loop-construct]
17 | for (const vector<int> neighbor : neighbors)
| ^~~~~~~~
main.cpp:17:28: note: use reference type to prevent copying
17 | for (const vector<int> neighbor : neighbors)
| ^~~~~~~~
| &
main.cpp: In member function 'void graf::island_mark(int, int)':
main.cpp:105:32: warning: loop variable 'neigbor' creates a copy from type 'const std::vector<int>' [-Wrange-loop-construct]
105 | for (const vector<int> neigbor : neighbors) /// visiting island neighbors
| ^~~~~~~
main.cpp:105:32: note: use reference type to prevent copying
105 | for (const vector<int> neigbor : neighbors) /// visiting island neighbors
| ^~~~~~~
| &
main.cpp: In constructor 'graf::graf(std::vector<std::vector<int> >&)':
main.cpp:146:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
146 | for(int i = 0; i < neighbors.size(); ++i)
| ~~^~~~~~~~~~~~~~~~~~
main.cpp:147:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
147 | for(int j = 0; j < neighbors[i].size(); ++j)
| ~~^~~~~~~~~~~~~~~~~~~~~
main.cpp: In constructor 'graf::graf(int, std::vector<std::vector<int> >&)':
main.cpp:154:32: warning: loop variable 'neighbor' creates a copy from type 'const std::vector<int>' [-Wrange-loop-construct]
154 | for (const vector<int> neighbor : neighbors)
| ^~~~~~~~
main.cpp:154:32: note: use reference type to prevent copying
154 | for (const vector<int> neighbor : neighbors)
| ^~~~~~~~
| &
main.cpp: In member function 'void graf::afisare()':
main.cpp:186:32: warning: loop variable 'neighbor' creates a copy from type 'const std::vector<int>' [-Wrange-loop-construct]
186 | for (const vector<int> neighbor : this->graph)
| ^~~~~~~~
main.cpp:186:32: note: use reference type to prevent copying
186 | for (const vector<int> neighbor : this->graph)
| ^~~~~~~~
| &
main.cpp: In member function 'std::vector<int> graf::topologicalSort()':
main.cpp:253:22: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
253 | if(sol.size()==nodes)/// checking if is not a cycle in graph
| ~~~~~~~~~~^~~~~~~
main.cpp: In member function 'int graf::shortestBridge()':
main.cpp:310:40: warning: loop variable 'neighbor' creates a copy from type 'const std::vector<int>' [-Wrange-loop-construct]
310 | for (const vector<int> neighbor : neighbors)
| ^~~~~~~~
main.cpp:310:40: note: use reference type to prevent copying
310 | for (const vector<int> neighbor : neighbors)
| ^~~~~~~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 303kb | OK | 10 |
2 | 0ms | 303kb | OK | 10 |
3 | 0ms | 303kb | OK | 10 |
4 | 1ms | 557kb | OK | 10 |
5 | 2ms | 557kb | OK | 10 |
6 | 14ms | 2129kb | OK | 10 |
7 | 49ms | 3731kb | OK | 10 |
8 | 29ms | 3100kb | OK | 10 |
9 | 84ms | 4968kb | OK | 10 |
10 | 79ms | 4964kb | OK | 10 |
Punctaj total | 100 |