Pagini recente » Borderou de evaluare (job #1610363) | Borderou de evaluare (job #1801122) | Borderou de evaluare (job #2153175) | Borderou de evaluare (job #1514276) | Borderou de evaluare (job #3178809)
Borderou de evaluare (job #3178809)
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 | Corect | 5 | 10 |
11 | 0ms | 303kb | Corect | 5 |
2 | 0ms | 303kb | Corect | 5 | 10 |
12 | 0ms | 303kb | Corect | 5 |
3 | 3ms | 557kb | Corect | 5 | 10 |
13 | 8ms | 1671kb | Corect | 5 |
4 | 3ms | 557kb | Corect | 5 | 10 |
14 | 7ms | 1007kb | Corect | 5 |
5 | 4ms | 557kb | Corect | 5 | 10 |
15 | 4ms | 1085kb | Corect | 5 |
6 | 550ms | 32030kb | Time limit exceeded | 0 | 0 |
16 | 0ms | 303kb | Corect | 5 |
7 | 550ms | 26128kb | Time limit exceeded | 0 | 0 |
17 | 0ms | 303kb | Corect | 5 |
8 | 554ms | 24662kb | Time limit exceeded | 0 | 0 |
18 | 53ms | 12099kb | Corect | 5 |
9 | 550ms | 27942kb | Time limit exceeded | 0 | 0 |
19 | 48ms | 11317kb | Corect | 5 |
10 | 550ms | 33378kb | Time limit exceeded | 0 | 0 |
20 | 49ms | 11694kb | Corect | 5 |
Punctaj total | 50 |