Pagini recente » Borderou de evaluare (job #2818060) | Borderou de evaluare (job #568812) | Borderou de evaluare (job #3171867) | Borderou de evaluare (job #1463180) | Borderou de evaluare (job #2816578)
Borderou de evaluare (job #2816578)
Raport evaluator
Compilare:
main.cpp:63:35: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
63 | void BFS(char* fisierIntrare ="bfs.in",char* fisierIesire={"bfs.out"});///primul exercitiu(afiseaza intr-un fisier lungimea drumurilor de la un nod la restul)
| ^~~~~~~~
main.cpp:63:64: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
63 | void BFS(char* fisierIntrare ="bfs.in",char* fisierIesire={"bfs.out"});///primul exercitiu(afiseaza intr-un fisier lungimea drumurilor de la un nod la restul)
| ^~~~~~~~~
main.cpp:65:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
65 | void DFS(char* fisierIesire="dfs.out");
| ^~~~~~~~~
main.cpp: In member function 'void Graf::BFS(char*, char*)':
main.cpp:209:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
209 | for (int i = 0; i < lsAd[nodCrt].size(); i++)///trec prin toate nodurile adiacente
| ~~^~~~~~~~~~~~~~~~~~~~~
main.cpp: In member function 'bool Graf::BellmanFord(std::ifstream&, std::vector<int>&)':
main.cpp:721:16: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
721 | if (cost[vecin.first] > cost[nodCrt] + vecin.second) //vecin.first -> nodul catre care duce arcul // vecin.second -> costul arcului
| ^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 2ms | 184kb | Raspuns corect! | 10 | 10 |
2 | 2ms | 184kb | Raspuns corect! | 10 | 10 |
3 | 6ms | 856kb | Raspuns corect! | 10 | 10 |
4 | 54ms | 6664kb | Raspuns corect! | 10 | 10 |
5 | 140ms | 13529kb | Raspuns corect! | 10 | 10 |
6 | 517ms | 43352kb | Raspuns corect! | 10 | 10 |
7 | 158ms | 14778kb | Raspuns corect! | 10 | 20 |
8 | 674ms | 57233kb | Raspuns corect! | 10 |
9 | 648ms | 62337kb | Raspuns corect! | 10 | 0 |
10 | 624ms | 65556kb | Memory limit exceeded | 0 |
Punctaj total | 80 |