Borderou de evaluare (job #2828875)
Utilizator | Data | 8 ianuarie 2022 05:20:20 | |
---|---|---|---|
Problema | Asmax | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void dfs(std::vector<std::vector<int> >, int, std::vector<int>&)':
main.cpp:31:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
31 | for(int i = 0; i < result.size(); i++)
| ~~^~~~~~~~~~~~~~~
main.cpp: In function 'void dfs_connected(std::vector<std::vector<int> >, int, std::vector<std::vector<int> >&)':
main.cpp:59:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
59 | for(int j = 0; j <= result_dfs.size(); j++)
| ~~^~~~~~~~~~~~~~~~~~~~
main.cpp: In function 'int conexidad(std::vector<std::vector<int> >, std::vector<std::vector<int> >&, int, std::vector<std::vector<int> >)':
main.cpp:75:46: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
75 | for (int current_index = 0; current_index < components.size() - 1; current_index++)
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In function 'int transport(std::vector<std::vector<std::pair<int, int> > >, int)':
main.cpp:128:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
128 | for(int i = 1; i < edges.size(); i++)
| ~~^~~~~~~~~~~~~~
main.cpp:131:34: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
131 | for(int index = 0; index < components.size(); index++)
| ~~~~~~^~~~~~~~~~~~~~~~~~~
main.cpp:116:9: warning: unused variable 'current_max' [-Wunused-variable]
116 | int current_max, trans_min = 10001;
| ^~~~~~~~~~~
main.cpp: In function 'int asmax(std::vector<std::vector<int> >, int)':
main.cpp:223:17: error: 'INT_MIN' was not declared in this scope
223 | int s_max = INT_MIN;
| ^~~~~~~
main.cpp:7:1: note: 'INT_MIN' is defined in header '<climits>'; did you forget to '#include <climits>'?
6 | #include <algorithm>
+++ |+#include <climits>
7 |
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !