Pagini recente » Borderou de evaluare (job #2609414) | Borderou de evaluare (job #387791) | Borderou de evaluare (job #2111743) | Borderou de evaluare (job #324261) | Borderou de evaluare (job #3177698)
Borderou de evaluare (job #3177698)
Raport evaluator
Compilare:
main.cpp: In function 'void afisare(std::vector<std::vector<int> >&)':
main.cpp:12:28: warning: loop variable 'neighbor' creates a copy from type 'const std::vector<int>' [-Wrange-loop-construct]
12 | for (const vector<int> neighbor : neighbors)
| ^~~~~~~~
main.cpp:12:28: note: use reference type to prevent copying
12 | for (const vector<int> neighbor : neighbors)
| ^~~~~~~~
| &
main.cpp: In member function 'void graf::island_mark(int, int)':
main.cpp:100:32: warning: loop variable 'neigbor' creates a copy from type 'const std::vector<int>' [-Wrange-loop-construct]
100 | for (const vector<int> neigbor : neighbors) /// visiting island neighbors
| ^~~~~~~
main.cpp:100:32: note: use reference type to prevent copying
100 | for (const vector<int> neigbor : neighbors) /// visiting island neighbors
| ^~~~~~~
| &
main.cpp: In constructor 'graf::graf(std::vector<std::vector<int> >&)':
main.cpp:141:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
141 | for(int i = 0; i < neighbors.size(); ++i)
| ~~^~~~~~~~~~~~~~~~~~
main.cpp:142:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
142 | for(int j = 0; j < neighbors[i].size(); ++j)
| ~~^~~~~~~~~~~~~~~~~~~~~
main.cpp: In constructor 'graf::graf(int, std::vector<std::vector<int> >&)':
main.cpp:149:32: warning: loop variable 'neighbor' creates a copy from type 'const std::vector<int>' [-Wrange-loop-construct]
149 | for (const vector<int> neighbor : neighbors)
| ^~~~~~~~
main.cpp:149:32: note: use reference type to prevent copying
149 | for (const vector<int> neighbor : neighbors)
| ^~~~~~~~
| &
main.cpp: In member function 'void graf::afisare()':
main.cpp:181:32: warning: loop variable 'neighbor' creates a copy from type 'const std::vector<int>' [-Wrange-loop-construct]
181 | for (const vector<int> neighbor : this->graph)
| ^~~~~~~~
main.cpp:181:32: note: use reference type to prevent copying
181 | for (const vector<int> neighbor : this->graph)
| ^~~~~~~~
| &
main.cpp: In member function 'std::vector<int> graf::topologicalSort()':
main.cpp:248:22: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
248 | if(sol.size()==nodes)/// checking if is not a cycle in graph
| ~~~~~~~~~~^~~~~~~
main.cpp: In member function 'int graf::shortestBridge()':
main.cpp:305:40: warning: loop variable 'neighbor' creates a copy from type 'const std::vector<int>' [-Wrange-loop-construct]
305 | for (const vector<int> neighbor : neighbors)
| ^~~~~~~~
main.cpp:305:40: note: use reference type to prevent copying
305 | 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 | 2ms | 303kb | OK | 10 |
5 | 3ms | 303kb | OK | 10 |
6 | 7ms | 303kb | OK | 10 |
7 | 9ms | 303kb | OK | 10 |
8 | 19ms | 303kb | OK | 10 |
9 | 24ms | 303kb | OK | 10 |
10 | 24ms | 303kb | OK | 10 |
Punctaj total | 100 |