Borderou de evaluare (job #3172157)
Utilizator | Data | 20 noiembrie 2023 10:57:20 | |
---|---|---|---|
Problema | Cablaj | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In member function 'void Graf::dfs(std::vector<std::vector<int> >&, std::vector<std::vector<bool> >&, std::queue<std::pair<int, int> >&, int, int, std::vector<std::vector<int> >&)':
main.cpp:32:33: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
32 | if (i < 0 || j < 0 || i >= A.size() || j >= A[0].size() || visited[i][j] || A[i][j] == 0)
| ~~^~~~~~~~~~~
main.cpp:32:50: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
32 | if (i < 0 || j < 0 || i >= A.size() || j >= A[0].size() || visited[i][j] || A[i][j] == 0)
| ~~^~~~~~~~~~~~~~
main.cpp: In member function 'bool Graf::aciclic()':
main.cpp:200:27: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
200 | return sol.size() == nr_noduri;
| ~~~~~~~~~~~^~~~~~~~~~~~
main.cpp: In member function 'void Graf::afisare_dfs_vect()':
main.cpp:289:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
289 | for (int i = 0; i < this->dfs_vect.size(); i++) {
| ~~^~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In member function 'void Graf::afisare_bfs_vect()':
main.cpp:295:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
295 | for (int i = 0; i < this->bfs_vect.size(); i++) {
| ~~^~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In member function 'int Graf::findCheapest(int, int, int)':
main.cpp:302:60: error: 'INT_MAX' was not declared in this scope
302 | vector<vector<int>> dp(k+2, vector<int>(nr_noduri, INT_MAX));
| ^~~~~~~
main.cpp:7:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
6 | #include<math.h>
+++ |+#include <climits>
7 | using namespace std;
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !