Pagini recente » Borderou de evaluare (job #3040481) | Borderou de evaluare (job #614213) | Borderou de evaluare (job #94414) | Borderou de evaluare (job #1792440) | Borderou de evaluare (job #3175782)
Borderou de evaluare (job #3175782)
Raport evaluator
Compilare:
main.cpp: In function 'void Dijkstra(int, int, std::vector<int>&, std::vector<int>&, std::vector<std::vector<std::pair<int, int> > >&)':
main.cpp:10:24: warning: overflow in conversion from 'float' to '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} changes value from '+Inff' to '2147483647' [-Woverflow]
10 | distances[i] = INFINITY;
| ^~~~~~~~
main.cpp: In function 'void displayPath(int, int, std::vector<int>&)':
main.cpp:56:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
56 | for(int i = 0; i < path.size(); i++)
| ~~^~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:69:33: warning: overflow in conversion from 'float' to 'std::vector<int>::value_type' {aka 'int'} changes value from '+Inff' to '2147483647' [-Woverflow]
69 | vector <int> distancesA(N+1,INFINITY), dadsA(N+1, 0);
| ^~~~~~~~
main.cpp:70:33: warning: overflow in conversion from 'float' to 'std::vector<int>::value_type' {aka 'int'} changes value from '+Inff' to '2147483647' [-Woverflow]
70 | vector <int> distancesB(N+1,INFINITY), dadsB(N+1, 0);
| ^~~~~~~~
main.cpp:71:33: warning: overflow in conversion from 'float' to 'std::vector<int>::value_type' {aka 'int'} changes value from '+Inff' to '2147483647' [-Woverflow]
71 | vector <int> distancesC(N+1,INFINITY), dadsC(N+1, 0);
| ^~~~~~~~
main.cpp:99:16: warning: 'nodeMin' may be used uninitialized [-Wmaybe-uninitialized]
99 | displayPath(nodeMin, C, dadsC);
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
main.cpp:65:9: note: 'nodeMin' was declared here
65 | int nodeMin;
| ^~~~~~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 0ms | 303kb | Corect | 5 | 10 |
11 | 0ms | 303kb | Corect | 5 |
2 | 0ms | 303kb | Corect | 5 | 10 |
12 | 0ms | 303kb | Corect | 5 |
3 | 1ms | 303kb | Corect | 5 | 10 |
13 | 4ms | 819kb | Corect | 5 |
4 | 1ms | 303kb | Corect | 5 | 10 |
14 | 2ms | 557kb | Corect | 5 |
5 | 1ms | 557kb | Corect | 5 | 10 |
15 | 2ms | 557kb | Corect | 5 |
6 | 128ms | 13279kb | Corect | 5 | 10 |
16 | 0ms | 303kb | Corect | 5 |
7 | 108ms | 12111kb | Corect | 5 | 10 |
17 | 0ms | 303kb | Corect | 5 |
8 | 91ms | 11468kb | Corect | 5 | 0 |
18 | 100ms | 66748kb | Memory limit exceeded | 0 |
9 | 128ms | 12845kb | Corect | 5 | 0 |
19 | 90ms | 66748kb | Memory limit exceeded | 0 |
10 | 153ms | 13451kb | Corect | 5 | 0 |
20 | 88ms | 66748kb | Memory limit exceeded | 0 |
Punctaj total | 70 |