Borderou de evaluare (job #2807811)
Utilizator | Data | 24 noiembrie 2021 11:21:37 | |
---|---|---|---|
Problema | Arbore partial de cost minim | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In member function 'void Graf::Kruskal()':
main.cpp:82:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<std::pair<int, int>, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
82 | for (i = 0; i < adiacenta.size(); i++)
| ~~^~~~~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:118:10: error: 'std::vector<std::pair<int, int> > Graf::solutie' is private within this context
118 | g<<G.solutie[i].first<<' '<<G.solutie[i].second<<endl;
| ^~~~~~~
main.cpp:17:28: note: declared private here
17 | vector<pair<int, int>> solutie;
| ^~~~~~~
main.cpp:118:35: error: 'std::vector<std::pair<int, int> > Graf::solutie' is private within this context
118 | g<<G.solutie[i].first<<' '<<G.solutie[i].second<<endl;
| ^~~~~~~
main.cpp:17:28: note: declared private here
17 | vector<pair<int, int>> solutie;
| ^~~~~~~
main.cpp:117:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
117 | for (int i = 0; i < M; i++)
| ^~~
main.cpp:120:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
120 | return 0;
| ^~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !