Borderou de evaluare (job #3318686)
| Utilizator | Data | 28 octombrie 2025 14:22:22 | |
|---|---|---|---|
| Problema | Parcurgere DFS - componente conexe | Status | done |
| Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp:10:8: error: 'vector' was not declared in this scope
10 | vector<vector<int>> a(n+1);
| ^~~~~~
main.cpp:6:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
5 | #include<fstream>
+++ |+#include <vector>
6 | using namespace std;
main.cpp:10:8: error: 'vector' was not declared in this scope
10 | vector<vector<int>> a(n+1);
| ^~~~~~
main.cpp:10:8: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
main.cpp:10:8: error: 'vector' was not declared in this scope
main.cpp:10:8: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
main.cpp:10:8: error: 'vector' was not declared in this scope
main.cpp:10:8: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
main.cpp:10:8: error: 'vector' was not declared in this scope
main.cpp:10:8: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
main.cpp:10:8: error: 'vector' was not declared in this scope
main.cpp:10:8: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
main.cpp:10:8: error: 'vector' was not declared in this scope
main.cpp:10:8: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
main.cpp:10:8: error: 'vector' was not declared in this scope
main.cpp:10:8: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
main.cpp:10:8: error: 'vector' was not declared in this scope
main.cpp:10:8: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
main.cpp:10:1: error: 'vector' does not name a type
10 | vector<vector<int>> a(n+1);
| ^~~~~~
main.cpp:11:1: error: 'vector' does not name a type
11 | vector<int> viz(n+1,0);
| ^~~~~~
main.cpp: In function 'void dfs(int)':
main.cpp:14:5: error: 'viz' was not declared in this scope
14 | viz[nod]=1;
| ^~~
main.cpp:15:17: error: 'a' was not declared in this scope
15 | for(auto it:a[nod])
| ^
main.cpp: In function 'int main()':
main.cpp:26:9: error: 'a' was not declared in this scope
26 | a[x].push_back(y);
| ^
main.cpp:31:12: error: 'viz' was not declared in this scope
31 | if(viz[i]==0)
| ^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
