Borderou de evaluare (job #3040649)
Utilizator | Data | 30 martie 2023 11:02:10 | |
---|---|---|---|
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(int)':
main.cpp:13:5: error: 'dist' was not declared in this scope
13 | dist[start]=0;
| ^~~~
main.cpp:17:13: error: 'auro' was not declared in this scope; did you mean 'auto'?
17 | for(auro vecin:a[city]){
| ^~~~
| auto
main.cpp:24:18: error: could not convert 'orase.std::queue<int>::pop()' from 'void' to 'bool'
24 | orase.pop()
| ~~~~~~~~~^~
| |
| void
main.cpp:24:20: error: expected ';' before '}' token
24 | orase.pop()
| ^
| ;
25 | }
| ~
main.cpp:25:5: error: expected primary-expression before '}' token
25 | }
| ^
main.cpp:24:20: error: expected ')' before '}' token
24 | orase.pop()
| ^
| )
25 | }
| ~
main.cpp:17:12: note: to match this '('
17 | for(auro vecin:a[city]){
| ^
main.cpp:25:5: error: expected primary-expression before '}' token
25 | }
| ^
main.cpp:16:13: warning: unused variable 'city' [-Wunused-variable]
16 | int city=orase.front();
| ^~~~
main.cpp: In function 'int main()':
main.cpp:41:10: error: 'dist' was not declared in this scope
41 | dist[i]=-1;
| ^~~~
main.cpp:46:15: error: 'dist' was not declared in this scope
46 | fout<<dist[i]<<" ";
| ^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !