Borderou de evaluare (job #2814991)
Utilizator | Data | 8 decembrie 2021 22:36:34 | |
---|---|---|---|
Problema | Floyd-Warshall/Roy-Floyd | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In constructor 'weightedGraph::weightedGraph(int, int, std::vector<std::vector<int> >&)':
main.cpp:16:30: warning: comparison of integer expressions of different signedness: 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
16 | if(costMatrix.size() != numberOfNodes + 1){
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
main.cpp: In member function 'void weightedGraph::setEdgeCost(int, int, int)':
main.cpp:51:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
51 | if(i <= m_costMatrix.size()){
| ~~^~~~~~~~~~~~~~~~~~~~~~
main.cpp:52:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
52 | if(j <= m_costMatrix[i].size()){
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:85:26: error: 'INT_MAX' was not declared in this scope
85 | v[i][j] = INT_MAX;
| ^~~~~~~
main.cpp:4:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
3 | #include <vector>
+++ |+#include <climits>
4 | using namespace std;
main.cpp:94:27: error: 'INT_MAX' was not declared in this scope
94 | if(v[i][j] != INT_MAX){
| ^~~~~~~
main.cpp:94:27: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !