Borderou de evaluare (job #2975823)
Utilizator | Data | 7 februarie 2023 17:33:22 | |
---|---|---|---|
Problema | BFS - Parcurgere in latime | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:32:5: error: 'cin' was not declared in this scope
32 | cin >> n >> m >> nod;
| ^~~
main.cpp:3:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
2 | #include <queue>
+++ |+#include <iostream>
3 | #include <vector>
main.cpp:40:20: error: 'cout' was not declared in this scope
40 | if(viz[i]) cout << dist[i] << " ";
| ^~~~
main.cpp:40:20: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
main.cpp:41:14: error: 'cout' was not declared in this scope
41 | else cout << "-1 ";
| ^~~~
main.cpp:41:14: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !