Borderou de evaluare (job #3199046)
Utilizator | Data | 31 ianuarie 2024 15:17:15 | |
---|---|---|---|
Problema | Parcurgere DFS - componente conexe | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:6:8: error: 'vector' was not declared in this scope
6 | vector<vector<int>>G;
| ^~~~~~
main.cpp:3:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
2 | #include <fstream>
+++ |+#include <vector>
3 | using namespace std;
main.cpp:6:8: error: 'vector' was not declared in this scope
6 | vector<vector<int>>G;
| ^~~~~~
main.cpp:6:8: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
main.cpp:6:8: error: 'vector' was not declared in this scope
main.cpp:6:8: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
main.cpp:6:8: error: 'vector' was not declared in this scope
main.cpp:6:8: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
main.cpp:6:8: error: 'vector' was not declared in this scope
main.cpp:6:8: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
main.cpp:6:8: error: 'vector' was not declared in this scope
main.cpp:6:8: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
main.cpp:6:8: error: 'vector' was not declared in this scope
main.cpp:6:8: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
main.cpp:6:8: error: 'vector' was not declared in this scope
main.cpp:6:8: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
main.cpp:6:8: error: 'vector' was not declared in this scope
main.cpp:6:8: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
main.cpp:6:1: error: 'vector' does not name a type
6 | vector<vector<int>>G;
| ^~~~~~
main.cpp: In function 'void DFS(int)':
main.cpp:11:19: error: 'G' was not declared in this scope
11 | for(int i=0;i<G[node].size();i++)
| ^
main.cpp: In function 'int main()':
main.cpp:22:5: error: 'G' was not declared in this scope
22 | G.resize(n+1);
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !