Borderou de evaluare (job #2924606)
Utilizator | Data | 6 octombrie 2022 11:21:09 | |
---|---|---|---|
Problema | BFS - Parcurgere in latime | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void BFS()':
main.cpp:23:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
23 | for(int i=0;i<v[top].size();i++)
| ~^~~~~~~~~~~~~~
main.cpp:25:16: error: 'visit' was not declared in this scope
25 | if(visit[v[top][i]]==0)
| ^~~~~
main.cpp:25:16: note: 'std::visit' is only available from C++17 onwards
main.cpp: In function 'int main()':
main.cpp:48:15: error: 'visit' was not declared in this scope
48 | cout<<visit[i]-1<<" ";
| ^~~~~
main.cpp:48:15: note: 'std::visit' is only available from C++17 onwards
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !