Borderou de evaluare (job #3173138)
Utilizator | Data | 21 noiembrie 2023 21:51:43 | |
---|---|---|---|
Problema | Camionas | 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:31:33: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
31 | if (i < 0 || j < 0 || i >= A.size() || j >= A[0].size() || visited[i][j] || A[i][j] == 0)
| ~~^~~~~~~~~~~
main.cpp:31:50: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
31 | 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:303:60: error: 'INT_MAX' was not declared in this scope
303 | 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;
main.cpp: In function 'void cablaj()':
main.cpp:449:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
449 | for(int i=0; i<localitati.size(); i++){
| ~^~~~~~~~~~~~~~~~~~
main.cpp: In function 'void apm2()':
main.cpp:498:37: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
498 | while(noduriVizitate.size() != nrNoduri)
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
main.cpp: In function 'int minDistance(std::vector<int>, std::vector<bool>)':
main.cpp:525:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
525 | for (int v = 1; v <= dist.size(); v++)
| ~~^~~~~~~~~~~~~~
main.cpp: In function 'bool este_muchie(int, int, std::vector<muchie>)':
main.cpp:536:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<muchie>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
536 | for(int i=0; i<muchii.size(); i++){
| ~^~~~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !