Pagini recente » Borderou de evaluare (job #2642148) | Borderou de evaluare (job #2323290) | Borderou de evaluare (job #1080296) | Borderou de evaluare (job #1409749) | Borderou de evaluare (job #2821913)
Borderou de evaluare (job #2821913)
Raport evaluator
Compilare:
main.cpp: In member function 'void Graph::dfs(int, bool*)':
main.cpp:213:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
213 | for (int i = 0; i < adj[node].size(); i++)
| ~~^~~~~~~~~~~~~~~~~~
main.cpp: In member function 'void Graph::outputAdj()':
main.cpp:221:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
221 | for (int i = 0; i < adj[node].size(); i++)
| ~~^~~~~~~~~~~~~~~~~~
main.cpp: In member function 'std::vector<int> Graph::bfsUtil(int, bool*)':
main.cpp:305:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
305 | for (int i = 0; i < adj[node].size(); i++) //parcurg toti vecinii sai
| ~~^~~~~~~~~~~~~~~~~~
main.cpp: In member function 'std::vector<int> Graph::topSort(int*, std::queue<int>)':
main.cpp:411:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
411 | for (int i = 0; i < adj[node].size(); i++)
| ~~^~~~~~~~~~~~~~~~~~
main.cpp: In member function 'bool Graph::graphExists(std::vector<int>)':
main.cpp:444:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
444 | if (top > degree_seq.size()) // daca valoarea primului element este mare decat numarul de elemente ramase, nu putem construi un astfel de graf
| ~~~~^~~~~~~~~~~~~~~~~~~
main.cpp:447:28: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
447 | for (int i = 0 ; i < degree_seq.size(); i++) //dupa eliminarea primului element, scadem gradul "nodurilor" ramase
| ~~^~~~~~~~~~~~~~~~~~~
main.cpp: In member function 'std::vector<int> Graph::dijkstra(int)':
main.cpp:582:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
582 | for (int i = 0; i < adj_weight[node].size(); i++) //pentru toate nodurile adiacente ale lui node
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In member function 'bool Graph::bellmanFord(int, std::vector<int>&)':
main.cpp:622:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
622 | for (int i = 0; i < adj_weight[node].size(); i++) //pentru toate nodurile adiacente cu node
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In member function 'bool Graph::bfsMaxFlow(int, int, std::vector<std::vector<int> >, int*, bool*)':
main.cpp:652:35: warning: 'sizeof' on array function parameter 'visited' will return size of 'bool*' [-Wsizeof-array-argument]
652 | memset(visited, false, sizeof(visited));
| ~^~~~~~~~
main.cpp:650:96: note: declared here
650 | bool Graph::bfsMaxFlow(int src, int dst, vector<vector<int>> residualGraph, int parent[], bool visited[])
| ~~~~~^~~~~~~~~
main.cpp:652:28: warning: argument to 'sizeof' in 'void* memset(void*, int, size_t)' call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess]
652 | memset(visited, false, sizeof(visited));
| ^~~~~~~~~~~~~~~
main.cpp:664:28: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
664 | for (int i = 0 ; i < adj_capacity[node].size(); i++) //parcurg toate nodurile adiacente cu nodul curent
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In member function 'int Graph::EdmondsKarp(int, int)':
main.cpp:693:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
693 | for (int j = 0; j < adj_capacity[i].size(); j++)
| ~~^~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In member function 'void Graph::dfsUtil(int, int&, int, int&, bool*)':
main.cpp:772:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 11ms | 7446kb | OK | 5 | 5 |
2 | 11ms | 7417kb | OK | 5 | 5 |
3 | 11ms | 7462kb | OK | 5 | 5 |
4 | 10ms | 7483kb | OK | 5 | 5 |
5 | 15ms | 7827kb | OK | 5 | 5 |
6 | 10ms | 7442kb | OK | 5 | 10 |
7 | 15ms | 7868kb | OK | 5 |
8 | 44ms | 8540kb | OK | 5 | 15 |
9 | 59ms | 8740kb | OK | 5 |
10 | 15ms | 7864kb | OK | 5 |
11 | 68ms | 9199kb | OK | 5 | 20 |
12 | 126ms | 9818kb | OK | 5 |
13 | 92ms | 9383kb | OK | 5 |
14 | 173ms | 10510kb | OK | 5 |
15 | 216ms | 11018kb | OK | 5 | 15 |
16 | 169ms | 10346kb | OK | 5 |
17 | 15ms | 7868kb | OK | 5 |
18 | 249ms | 11501kb | OK | 5 | 15 |
19 | 302ms | 12193kb | OK | 5 |
20 | 20ms | 8007kb | OK | 5 |
Punctaj total | 100 |