Borderou de evaluare (job #3183647)
Utilizator | Data | 12 decembrie 2023 17:24:23 | |
---|---|---|---|
Problema | Parcurgere DFS - componente conexe | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:8:12: error: expected ']' before numeric constant
8 | int use[100 001], nr=0;
| ^~~~
| ]
main.cpp:9:18: error: expected ']' before numeric constant
9 | vector<int> v[100 001];
| ^~~~
| ]
main.cpp: In function 'void dfs(int)':
main.cpp:14:5: error: 'use' was not declared in this scope
14 | use[nod]=1;
| ^~~
main.cpp:15:17: error: 'v' was not declared in this scope
15 | for (i=0; i<v[nod].size(); i++)
| ^
main.cpp:19:13: error: 'nr' was not declared in this scope
19 | nr++;
| ^~
main.cpp: In function 'int main()':
main.cpp:31:9: error: 'v' was not declared in this scope
31 | v[y].push_back (x);
| ^
main.cpp:37:13: error: 'nr' was not declared in this scope
37 | fout<<N-nr;
| ^~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !