Borderou de evaluare (job #2936257)
Utilizator | Data | 8 noiembrie 2022 14:17:15 | |
---|---|---|---|
Problema | Retea2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In member function 'double Graph::dist_min_centrala(const double&, const double&)':
main.cpp:45:20: error: 'INT_MAX' was not declared in this scope
45 | double minim = INT_MAX;
| ^~~~~~~
main.cpp:8:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
7 | #include <algorithm>
+++ |+#include <climits>
8 |
main.cpp: In member function 'void Graph::add_edges(int, std::priority_queue<std::vector<double> >&)':
main.cpp:87:30: warning: narrowing conversion of 'i' from 'int' to 'double' [-Wnarrowing]
87 | pq.push({-d, i});
| ^
main.cpp:87:30: warning: narrowing conversion of 'i' from 'int' to 'double' [-Wnarrowing]
main.cpp: In member function 'void Graph::apm_prim(int)':
main.cpp:97:18: warning: narrowing conversion of '-((Graph*)this)->Graph::min_to_centrala.std::vector<int>::operator[](((std::vector<int>::size_type)i))' from '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} to 'double' [-Wnarrowing]
97 | pq.push({-min_to_centrala[i], i});
main.cpp:97:18: warning: narrowing conversion of '-((Graph*)this)->Graph::min_to_centrala.std::vector<int>::operator[](((std::vector<int>::size_type)i))' from '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} to 'double' [-Wnarrowing]
main.cpp:97:39: warning: narrowing conversion of 'i' from 'int' to 'double' [-Wnarrowing]
97 | pq.push({-min_to_centrala[i], i});
| ^
main.cpp:97:39: warning: narrowing conversion of 'i' from 'int' to 'double' [-Wnarrowing]
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !