Pagini recente » Borderou de evaluare (job #753649) | Borderou de evaluare (job #2848305) | Borderou de evaluare (job #1961826) | Borderou de evaluare (job #1686405) | Borderou de evaluare (job #2829446)
Borderou de evaluare (job #2829446)
Raport evaluator
Compilare:
main.cpp: In member function 'void Graph::addEdgeCost(int, int, int)':
main.cpp:157:22: warning: comparison of integer expressions of different signedness: 'std::vector<std::vector<edgeCost> >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
157 | if(AdCost.size() <= n)
| ~~~~~~~~~~~~~~^~~~
main.cpp: In member function 'int Graph::getTransportValue()':
main.cpp:295:9: warning: unused variable 'n' [-Wunused-variable]
295 | int n, x, y;
| ^
main.cpp: In member function 'int Graph::getMinCostHamiltonCircuit()':
main.cpp:652:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<edgeCost>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
652 | for (int j = 0; j < AdCost[i].size(); ++j)
| ~~^~~~~~~~~~~~~~~~~~
main.cpp:655:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
655 | for(int i = 0; i < dp.size(); ++i)
| ~~^~~~~~~~~~~
main.cpp:662:34: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<edgeCost>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
662 | for(int k = 0; k < AdCost[j].size(); ++k){
| ~~^~~~~~~~~~~~~~~~~~
main.cpp:669:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<edgeCost>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
669 | for(int i = 0; i < AdCost[0].size(); ++i){
| ~~^~~~~~~~~~~~~~~~~~
main.cpp: In member function 'bool Graph::bfsHopcroftKarp(std::vector<int>&, std::vector<int>&, std::vector<int>&)':
main.cpp:695:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
695 | for (int i = 0; i < Ad[node].size(); ++i) {
| ~~^~~~~~~~~~~~~~~~~
main.cpp: In member function 'bool Graph::dfsHopcroftKarp(int, std::vector<int>&, std::vector<int>&, std::vector<int>&)':
main.cpp:709:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
709 | for(int i = 0; i < Ad[node].size(); ++i){
| ~~^~~~~~~~~~~~~~~~~
main.cpp: In member function 'std::vector<std::pair<int, int> > Graph::getMaxMatching(int, int)':
main.cpp:727:9: warning: unused variable 'ct' [-Wunused-variable]
727 | int ct = 0;
| ^~
main.cpp: In member function 'std::vector<std::tuple<int, int, int> > Graph::getMST()':
main.cpp:278:41: warning: 'n' may be used uninitialized in this function [-Wmaybe-uninitialized]
278 | for(int i = 0; i < nr && solSize < n-1; ++i){
| ~^~
main.cpp: In member function 'int Graph::getTransportValue()':
main.cpp:323:12: warning: 'costMinim' may be used uninitialized in this function [-Wmaybe-uninitialized]
323 | return costMinim;
| ^~~~~~~~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 184kb | OK | 10 |
2 | 2ms | 184kb | OK | 10 |
3 | 2ms | 184kb | OK | 10 |
4 | 2ms | 184kb | OK | 10 |
5 | 6ms | 303kb | OK | 10 |
6 | 25ms | 1523kb | OK | 10 |
7 | 131ms | 5758kb | OK | 10 |
8 | 203ms | 10874kb | OK | 10 |
9 | 270ms | 11264kb | OK | 10 |
10 | 2ms | 184kb | OK | 10 |
Punctaj total | 100 |