Borderou de evaluare (job #2932587)
Utilizator | Data | 3 noiembrie 2022 11:00:35 | |
---|---|---|---|
Problema | Graf | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void BFS1(std::vector<std::vector<int> >&, std::vector<int>&, int)':
main.cpp:19:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
19 | for (i=0; i<adjList[node].size(); i++){
| ~^~~~~~~~~~~~~~~~~~~~~
main.cpp: In function 'void BFS2(std::vector<std::vector<int> >&, std::vector<int>&, int)':
main.cpp:40:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
40 | for (i=0; i<adjList[node].size(); i++){
| ~^~~~~~~~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:62:35: error: 'INT_MAX' was not declared in this scope
62 | vector<int> dist(nrVarfuri+1, INT_MAX);
| ^~~~~~~
main.cpp:5:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
4 | #include <queue>
+++ |+#include <climits>
5 | using namespace std;
main.cpp:70:5: error: 'sort' was not declared in this scope; did you mean 'qsort'?
70 | sort(answear.begin(), answear.end()); // n=answear.size() o (n logn)
| ^~~~
| qsort
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !