Borderou de evaluare (job #3288164)
Utilizator | Data | 20 martie 2025 19:15:11 | |
---|---|---|---|
Problema | Drumuri2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In member function 'void FordFulkerson::init()':
main.cpp:31:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<std::pair<long long int, long long int> > >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
31 | for(int i=0; i<g.size(); i++){
| ~^~~~~~~~~
main.cpp:32:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<long long int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
32 | for(int j=0; j<g[i].size(); j++){
| ~^~~~~~~~~~~~
main.cpp: In member function 'bool FordFulkerson::findAndUpdate(long long int, long long int, long long int&)':
main.cpp:51:28: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
51 | for(int i=0; i < eIndexes[u].size(); i++){
| ~~^~~~~~~~~~~~~~~~~~~~
main.cpp: In function 'std::vector<std::vector<std::pair<long long int, long long int> > > BuildDG(std::vector<std::vector<bool> >&)':
main.cpp:90:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<bool> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
90 | for(int u=0; u<g.size(); u++){
| ~^~~~~~~~~
main.cpp:94:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<bool> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
94 | for(int v=0; v<g.size(); v++){
| ~^~~~~~~~~
main.cpp: In function 'void Reachable(int&, int&, std::vector<bool>&, std::vector<std::vector<bool> >&)':
main.cpp:115:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<bool> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
115 | for(int s=0; s<g.size(); s++){
| ~^~~~~~~~~
main.cpp: In function 'std::vector<std::vector<bool> > BuildTransitiveClosure(std::vector<std::vector<bool> >&)':
main.cpp:125:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<bool> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
125 | for(int u=0; u<g.size(); u++){
| ~^~~~~~~~~
main.cpp:129:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<bool> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
129 | for(int v=0; v<g.size(); v++){
| ~^~~~~~~~~
At global scope:
cc1plus: error: '::main' must return 'int'
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !