Borderou de evaluare (job #2948764)
Utilizator | Data | 28 noiembrie 2022 11:40:34 | |
---|---|---|---|
Problema | Parcurgere DFS - componente conexe | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void dfs(int)':
main.cpp:15:24: error: 'begin' was not declared in this scope; did you mean 'std::begin'?
15 | for(auto it: vizitat[k]) {
| ^
| std::begin
In file included from /usr/include/c++/10/vector:69,
from main.cpp:2:
/usr/include/c++/10/bits/range_access.h:108:37: note: 'std::begin' declared here
108 | template<typename _Tp> const _Tp* begin(const valarray<_Tp>&);
| ^~~~~
main.cpp:15:24: error: 'end' was not declared in this scope; did you mean 'std::end'?
15 | for(auto it: vizitat[k]) {
| ^
| std::end
In file included from /usr/include/c++/10/vector:69,
from main.cpp:2:
/usr/include/c++/10/bits/range_access.h:110:37: note: 'std::end' declared here
110 | template<typename _Tp> const _Tp* end(const valarray<_Tp>&);
| ^~~
main.cpp:17:13: error: 'i' was not declared in this scope
17 | dfs(i);
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !