Pagini recente » Borderou de evaluare (job #2502513) | Borderou de evaluare (job #460651) | Borderou de evaluare (job #1223837) | Borderou de evaluare (job #1210586) | Borderou de evaluare (job #3178055)
Borderou de evaluare (job #3178055)
Raport evaluator
Compilare:
main.cpp: In function 'void afisare(std::vector<std::vector<int> >&)':
main.cpp:15:28: warning: loop variable 'neighbor' creates a copy from type 'const std::vector<int>' [-Wrange-loop-construct]
15 | for (const vector<int> neighbor : neighbors)
| ^~~~~~~~
main.cpp:15:28: note: use reference type to prevent copying
15 | for (const vector<int> neighbor : neighbors)
| ^~~~~~~~
| &
main.cpp: In member function 'void graf::island_mark(int, int)':
main.cpp:103:32: warning: loop variable 'neigbor' creates a copy from type 'const std::vector<int>' [-Wrange-loop-construct]
103 | for (const vector<int> neigbor : neighbors) /// visiting island neighbors
| ^~~~~~~
main.cpp:103:32: note: use reference type to prevent copying
103 | for (const vector<int> neigbor : neighbors) /// visiting island neighbors
| ^~~~~~~
| &
main.cpp: In constructor 'graf::graf(std::vector<std::vector<int> >&)':
main.cpp:144:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
144 | for(int i = 0; i < neighbors.size(); ++i)
| ~~^~~~~~~~~~~~~~~~~~
main.cpp:145:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
145 | for(int j = 0; j < neighbors[i].size(); ++j)
| ~~^~~~~~~~~~~~~~~~~~~~~
main.cpp: In constructor 'graf::graf(int, std::vector<std::vector<int> >&)':
main.cpp:152:32: warning: loop variable 'neighbor' creates a copy from type 'const std::vector<int>' [-Wrange-loop-construct]
152 | for (const vector<int> neighbor : neighbors)
| ^~~~~~~~
main.cpp:152:32: note: use reference type to prevent copying
152 | for (const vector<int> neighbor : neighbors)
| ^~~~~~~~
| &
main.cpp: In member function 'void graf::afisare()':
main.cpp:184:32: warning: loop variable 'neighbor' creates a copy from type 'const std::vector<int>' [-Wrange-loop-construct]
184 | for (const vector<int> neighbor : this->graph)
| ^~~~~~~~
main.cpp:184:32: note: use reference type to prevent copying
184 | for (const vector<int> neighbor : this->graph)
| ^~~~~~~~
| &
main.cpp: In member function 'std::vector<int> graf::topologicalSort()':
main.cpp:251:22: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
251 | if(sol.size()==nodes)/// checking if is not a cycle in graph
| ~~~~~~~~~~^~~~~~~
main.cpp: In member function 'int graf::shortestBridge()':
main.cpp:308:40: warning: loop variable 'neighbor' creates a copy from type 'const std::vector<int>' [-Wrange-loop-construct]
308 | for (const vector<int> neighbor : neighbors)
| ^~~~~~~~
main.cpp:308:40: note: use reference type to prevent copying
308 | for (const vector<int> neighbor : neighbors)
| ^~~~~~~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 1ms | 557kb | OK | 10 |
2 | 1ms | 557kb | OK | 10 |
3 | 1ms | 557kb | OK | 10 |
4 | 44ms | 15958kb | OK | 10 |
5 | 44ms | 16023kb | OK | 10 |
6 | 89ms | 23265kb | OK | 10 |
7 | 89ms | 23265kb | OK | 10 |
8 | 59ms | 16138kb | OK | 10 |
9 | 59ms | 16154kb | OK | 10 |
10 | 59ms | 16175kb | OK | 10 |
Punctaj total | 100 |