Borderou de evaluare (job #3156424)
Utilizator | Data | 11 octombrie 2023 16:53:47 | |
---|---|---|---|
Problema | Parcurgere DFS - componente conexe | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void DFS(int)':
main.cpp:13:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
13 | for(int i=0; i<G[x].size(); i++)
| ~^~~~~~~~~~~~
main.cpp: In function 'void BFS(int)':
main.cpp:22:5: error: 'queue' was not declared in this scope
22 | queue<int> q;
| ^~~~~
main.cpp:4:1: note: 'std::queue' is defined in header '<queue>'; did you forget to '#include <queue>'?
3 | #include <fstream>
+++ |+#include <queue>
4 | using namespace std;
main.cpp:22:11: error: expected primary-expression before 'int'
22 | queue<int> q;
| ^~~
main.cpp:23:5: error: 'q' was not declared in this scope
23 | q.push(x);
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !