Pagini recente » Borderou de evaluare (job #33749) | Borderou de evaluare (job #877431) | Borderou de evaluare (job #251093) | Borderou de evaluare (job #484488) | Borderou de evaluare (job #3174139)
Borderou de evaluare (job #3174139)
Raport evaluator
Compilare:
main.cpp: In constructor 'Graf::Graf(int, std::unordered_map<int, std::vector<int> >&)':
main.cpp:27:9: warning: 'Graf::nr_noduri' will be initialized after [-Wreorder]
27 | int nr_noduri;
| ^~~~~~~~~
main.cpp:19:37: warning: 'std::unordered_map<int, std::vector<int> > Graf::lista_adiac' [-Wreorder]
19 | unordered_map<int, vector<int>> lista_adiac;
| ^~~~~~~~~~~
main.cpp:37:5: warning: when initialized here [-Wreorder]
37 | Graf(int nr_noduri, unordered_map<int,vector<int>>&lista_adiac) : nr_noduri(nr_noduri), lista_adiac(lista_adiac){};
| ^~~~
main.cpp: In member function 'std::vector<int> Graf::topologicalSort(std::vector<std::vector<int> >&)':
main.cpp:93:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
93 | for(int nod=0; nod<grade.size(); nod++) // pun pe stiva toate nodurile ce au gradul de intrare 0
| ~~~^~~~~~~~~~~~~
main.cpp:108:25: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
108 | if(ordine.size()!=nr_noduri){ // daca dimensiune lui ordine, unde se afla rezultatul, difera de nr de noduri
| ~~~~~~~~~~~~~^~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:316:16: warning: 'nod_comun' may be used uninitialized [-Wmaybe-uninitialized]
316 | graf.traseu(parinte_c,nod_comun);
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
main.cpp:301:9: note: 'nod_comun' was declared here
301 | int nod_comun, cost_minim=-1;
| ^~~~~~~~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 0ms | 303kb | Cost prea mare | 0 | 0 |
11 | 0ms | 303kb | Corect | 5 |
2 | 0ms | 303kb | Cost prea mare | 0 | 0 |
12 | 0ms | 303kb | Corect | 5 |
3 | 2ms | 303kb | Corect | 5 | 10 |
13 | 8ms | 819kb | Corect | 5 |
4 | 1ms | 303kb | Corect | 5 | 10 |
14 | 4ms | 557kb | Corect | 5 |
5 | 2ms | 557kb | Corect | 5 | 10 |
15 | 4ms | 557kb | Corect | 5 |
6 | 237ms | 14942kb | Corect | 5 | 10 |
16 | 0ms | 303kb | Corect | 5 |
7 | 202ms | 13152kb | Corect | 5 | 0 |
17 | 0ms | 303kb | Cost prea mare | 0 |
8 | 187ms | 12759kb | Corect | 5 | 0 |
18 | 123ms | 10129kb | Drumurile au noduri comune | 0 |
9 | 232ms | 14184kb | Corect | 5 | 0 |
19 | 113ms | 9613kb | Drumurile au noduri comune | 0 |
10 | 252ms | 15114kb | Corect | 5 | 0 |
20 | 103ms | 9302kb | Drumurile au noduri comune | 0 |
Punctaj total | 40 |