Borderou de evaluare (job #3246496)
Utilizator | Data | 3 octombrie 2024 14:27:59 | |
---|---|---|---|
Problema | BFS - Parcurgere in latime | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:11:1: error: 'vector' does not name a type
11 | vector<int> L[NMAX + 1];
| ^~~~~~
main.cpp: In function 'void bfs(int)':
main.cpp:16:5: error: 'queue' was not declared in this scope
16 | queue<int> q;
| ^~~~~
main.cpp:3:1: note: 'std::queue' is defined in header '<queue>'; did you forget to '#include <queue>'?
2 | #include <iostream>
+++ |+#include <queue>
3 |
main.cpp:16:11: error: expected primary-expression before 'int'
16 | queue<int> q;
| ^~~
main.cpp:17:5: error: 'q' was not declared in this scope
17 | q.push(s);
| ^
main.cpp:21:25: error: 'L' was not declared in this scope
21 | for(auto next : L[node]) {
| ^
main.cpp: In function 'int main()':
main.cpp:36:9: error: 'L' was not declared in this scope
36 | L[x].push_back(y);
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !