Borderou de evaluare (job #2819801)
Utilizator | Data | 19 decembrie 2021 03:48:37 | |
---|---|---|---|
Problema | Pamant | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In member function 'bool Graph::isEulerian(std::vector<int>&)':
main.cpp:879:39: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Graph::WeightedEdge>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
879 | for (i = startIndex[currentNode]; i < weightedAdjacencyLists[currentNode].size(); i++) {
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:894:9: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Graph::WeightedEdge>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
894 | if (i == weightedAdjacencyLists[currentNode].size()) {
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In member function 'void Graph::tarjanDFS_AC(int, int, int&, std::vector<int>&, std::vector<int>&, std::vector<int>&)':
main.cpp:947:21: error: lvalue required as left operand of assignment
947 | if (parent == -1 && firstChildFound = -1)
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
main.cpp:948:23: error: 'i' was not declared in this scope
948 | firstChildFound = i;
| ^
main.cpp: In function 'void countingSort(std::vector<int>&, int)':
main.cpp:1006:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
1006 | for (int i = 0; i < toSort.size(); i++) {
| ~~^~~~~~~~~~~~~~~
main.cpp: In instantiation of 'void printVector(std::ostream&, std::vector<_Tp>, int) [with T = int; std::ostream = std::basic_ostream<char>]':
main.cpp:970:35: required from here
main.cpp:1027:29: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
1027 | for (int i = startIndex; i < toPrint.size(); i++)
| ~~^~~~~~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !