Borderou de evaluare (job #2678350)
Utilizator | Data | 28 noiembrie 2020 12:05:13 | |
---|---|---|---|
Problema | Parcurgere DFS - componente conexe | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:3:1: error: 'ifstream' does not name a type
ifstream f("dfs.in");
^~~~~~~~
main.cpp:4:1: error: 'ofstream' does not name a type
ofstream g("dfs.out");
^~~~~~~~
main.cpp:5:1: error: 'vector' does not name a type
vector <int> v[100005];
^~~~~~
main.cpp: In function 'void dfs(int)':
main.cpp:12:15: error: 'v' was not declared in this scope
for(i=0;i<v[nod].size();i++)
^
main.cpp: In function 'int main()':
main.cpp:21:5: error: 'f' was not declared in this scope
f>>n>>m;
^
main.cpp:25:9: error: 'v' was not declared in this scope
v[x].push_back(y);
^
main.cpp:37:5: error: 'g' was not declared in this scope
g<<cnt;
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !