Pagini recente » Borderou de evaluare (job #450361) | Borderou de evaluare (job #2196319) | Borderou de evaluare (job #2517581) | Borderou de evaluare (job #2258364) | Borderou de evaluare (job #2758381)
Borderou de evaluare (job #2758381)
Raport evaluator
Compilare:
main.cpp: In function 'void sift_down(int, std::vector<int>&, const std::vector<int>&, std::vector<int>&)':
main.cpp:43:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(left_son(current) < heap.size() && distances[heap[left_son(current)]] < distances[heap[current]]){
~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
main.cpp:46:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(right_son(current) < heap.size() && distances[heap[right_son(current)]] < distances[heap[current]] && distances[heap[right_son(current)]] < distances[heap[left_son(current)]]){
~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
main.cpp: In function 'std::vector<int> dijkstra(const std::vector<std::vector<std::pair<int, int> > >&, int)':
main.cpp:62:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < graph.size(); ++i){
~~^~~~~~~~~~~~~~
main.cpp:78:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < graph[current_node].size(); ++i){
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:111:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 1; i < result.size(); ++i){
~~^~~~~~~~~~~~~~~
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 2ms | 131kb | OK | 10 |
| 2 | 2ms | 131kb | OK | 10 |
| 3 | 4ms | 262kb | OK | 10 |
| 4 | 5ms | 262kb | OK | 10 |
| 5 | 29ms | 1048kb | OK | 10 |
| 6 | 54ms | 1703kb | OK | 10 |
| 7 | 77ms | 2367kb | OK | 10 |
| 8 | 140ms | 4575kb | OK | 10 |
| 9 | 124ms | 4186kb | OK | 10 |
| 10 | 298ms | 6017kb | OK | 10 |
| Punctaj total | 100 |