Borderou de evaluare (job #1973929)
Utilizator | Data | 26 aprilie 2017 14:10:35 | |
---|---|---|---|
Problema | Algoritmul Bellman-Ford | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘std::vector<int> SPFA(std::vector<std::vector<std::pair<unsigned int, int> > >&, size_t, vertex_t)’:
user.cpp:13:18: error: ‘numeric_limits’ is not a member of ‘std’
const int INF = std::numeric_limits<int>::max();
^
user.cpp:13:38: error: expected primary-expression before ‘int’
const int INF = std::numeric_limits<int>::max();
^
user.cpp:56:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (countQueue[to] > numVertices) {
^
user.cpp:57:13: error: ‘runtime_error’ is not a member of ‘std’
throw std::runtime_error("Negative cycle!");
^
user.cpp: In function ‘int main()’:
user.cpp:100:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 1; i < dist.size(); i++)
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !