Pagini recente » Borderou de evaluare (job #1690857) | Borderou de evaluare (job #2358443) | Borderou de evaluare (job #628312) | Borderou de evaluare (job #70422) | Borderou de evaluare (job #3178171)
Borderou de evaluare (job #3178171)
Raport evaluator
Compilare:
main.cpp: In member function 'int Graph::dijkstra(int, int, int, int)':
main.cpp:188: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]
188 | for(int i = 0 ; i < this->adjacency[current].size() ; i++){
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In member function 'std::vector<std::pair<int, long long int> > Graph::dijkstraPathAndCost(int)':
main.cpp:231:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
231 | for(int i = 0 ; i < this->adjacency[current].size() ; i++){
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In member function 'std::vector<int> Graph::zeroOneBFS(int)':
main.cpp:261: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]
261 | for(int i = 0 ; i < this->adjacency[current].size(); i++){
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In member function 'void Solution::rusuoaica()':
main.cpp:429:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Edge>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
429 | for(int i = 0 ; i < newEdgeList.size() ; i++){
| ~~^~~~~~~~~~~~~~~~~~~~
main.cpp: In member function 'int Solution::findCheapestPrice(int, std::vector<std::vector<int> >&, int, int, int)':
main.cpp:458:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
458 | for(int i = 0; i < flights.size() ; i++)
| ~~^~~~~~~~~~~~~~~~
main.cpp: In member function 'int Solution::dragoni1(std::ifstream&, int, int*)':
main.cpp:477:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
477 | for(int i = 1 ; i < costs.size() ; i++){
| ~~^~~~~~~~~~~~~~
main.cpp: In member function 'int Solution::dragoni2(std::ifstream&, int, int*)':
main.cpp:520:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
520 | for(int i = 0 ; i < graf[currentNode].size() ; i++){
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In member function 'int Solution::jzzhuAndCities()':
main.cpp:743:1: warning: no return statement in function returning non-void [-Wreturn-type]
743 | }
| ^
main.cpp: In member function 'int Solution::dragoni2(std::ifstream&, int, int*)':
main.cpp:537:1: warning: control reaches end of non-void function [-Wreturn-type]
537 | }
| ^
main.cpp: In member function 'int Solution::apm2MaximumCost(Graph&, int, int, int)':
main.cpp:618:21: warning: 'weight' may be used uninitialized [-Wmaybe-uninitialized]
618 | return weight - 1;
| ^
main.cpp:597:9: note: 'weight' was declared here
597 | int weight;
| ^~~~~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 0ms | 303kb | Incorect | 0 | 0 |
2 | 0ms | 303kb | Incorect | 0 |
3 | 2ms | 557kb | Incorect | 0 |
4 | 79ms | 1085kb | Time limit exceeded | 0 |
5 | 79ms | 1077kb | Time limit exceeded | 0 |
6 | 34ms | 815kb | Incorect | 0 |
7 | 79ms | 1339kb | Time limit exceeded | 0 |
8 | 79ms | 1990kb | Time limit exceeded | 0 |
9 | 79ms | 2031kb | Time limit exceeded | 0 |
10 | 79ms | 1990kb | Time limit exceeded | 0 |
Punctaj total | 0 |