Borderou de evaluare (job #2903613)
Utilizator | Data | 17 mai 2022 18:46:59 | |
---|---|---|---|
Problema | Parcurgere DFS - componente conexe | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:5:1: error: 'bitset' does not name a type
5 | bitset<N+1>viz;
| ^~~~~~
main.cpp: In function 'void dfs(int)':
main.cpp:9:5: error: 'viz' was not declared in this scope
9 | viz[x]=1;
| ^~~
main.cpp: In function 'int main()':
main.cpp:18:17: error: variable 'std::ifstream in' has initializer but incomplete type
18 | ifstream in(dfs.in);
| ^~~
main.cpp:18:21: error: request for member 'in' in 'dfs', which is of non-class type 'void(int)'
18 | ifstream in(dfs.in);
| ^~
main.cpp:19:18: error: variable 'std::ofstream out' has initializer but incomplete type
19 | ofstream out(dfs.out);
| ^~~
main.cpp:19:22: error: request for member 'out' in 'dfs', which is of non-class type 'void(int)'
19 | ofstream out(dfs.out);
| ^~~
main.cpp:31:13: error: 'viz' was not declared in this scope
31 | if(!viz[i])
| ^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !