Pagini recente » Borderou de evaluare (job #2580004) | Borderou de evaluare (job #1113268) | Borderou de evaluare (job #1838687) | Borderou de evaluare (job #2036583) | Borderou de evaluare (job #2811042)
Borderou de evaluare (job #2811042)
Raport evaluator
Compilare:
main.cpp: In member function 'void graf::construire_graf(int)':
main.cpp:50:15: warning: unused variable 'cost' [-Wunused-variable]
50 | int u, v, cost;
| ^~~~
main.cpp: In member function 'void graf::bfs(int)':
main.cpp:111:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
111 | for(int i = 0; i < lista[nod_s].size(); i++) //parcurgem lista de adiacenta a nodului nod_s
| ~~^~~~~~~~~~~~~~~~~~~~~
main.cpp: In member function 'void graf::dfs(int, bool*)':
main.cpp:148:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
148 | for(int i = 0; i < lista[nod].size(); i ++) //parcurgem lista de vecini a lui nod
| ~~^~~~~~~~~~~~~~~~~~~
main.cpp: In member function 'void graf::CtareC()':
main.cpp:260:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
260 | for (int j = 0; j < ctc[i].size(); j ++)
| ~~^~~~~~~~~~~~~~~
main.cpp: In member function 'void graf::compTC(int, std::vector<int>*, bool*, int&)':
main.cpp:272:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
272 | for(int i = 0; i < lista1[nod].size(); i ++) //pt. fiecare nod i din care se poate ajunge in nod
| ~~^~~~~~~~~~~~~~~~~~~~
main.cpp: In function 'bool Havel_Hakimi(std::vector<int>&, int)':
main.cpp:308:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
308 | if (a > x.size()) //verificam daca avem suficiente elem. in vector. Daca nu => nu se poate crea graful
| ~~^~~~~~~~~~
main.cpp: In member function 'void graf::dijkstra()':
main.cpp:386:13: warning: unused variable 'dist' [-Wunused-variable]
386 | int dist = s.begin() -> first;
| ^~~~
main.cpp: In member function 'void graf::bellmanford()':
main.cpp:484:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
484 | for(int k = 0; k < vecini[coada.front()].size(); k ++)
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In member function 'void graf::parcurgere_bfs(int, std::vector<int>*, std::queue<int>, int*, bool, int (*)[5001])':
main.cpp:546:26: warning: 'sizeof' on array function parameter 'tata' will return size of 'int*' [-Wsizeof-array-argument]
546 | memset(tata, 0, sizeof(tata));
| ~^~~~~
main.cpp:543:77: note: declared here
543 | void graf :: parcurgere_bfs(int start, vector <int> g[], queue <int> q, int tata[], bool lant_gasit, int capacitate[][MAXM])
| ~~~~^~~~~~
main.cpp:546:19: 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]
546 | memset(tata, 0, sizeof(tata));
| ^~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:595:10: warning: unused variable 's' [-Wunused-variable]
595 | int s, n, m;
| ^
main.cpp: In member function 'void graf::maxflow()':
main.cpp:521:19: warning: 'lant_gasit' may be used uninitialized in this function [-Wmaybe-uninitialized]
521 | parcurgere_bfs(1, g, q, tata, lant_gasit, capacitate);
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 184kb | Incorect | 0 |
2 | 2ms | 184kb | Incorect | 0 |
3 | 2ms | 184kb | Incorect | 0 |
4 | 2ms | 184kb | Incorect | 0 |
5 | 2ms | 184kb | Incorect | 0 |
6 | 2ms | 184kb | Incorect | 0 |
7 | 6ms | 303kb | Incorect | 0 |
8 | 6ms | 282kb | Incorect | 0 |
9 | 6ms | 200kb | Incorect | 0 |
10 | 11ms | 315kb | Incorect | 0 |
Punctaj total | 0 |