Borderou de evaluare (job #3040645)
Utilizator | Data | 30 martie 2023 11:00:41 | |
---|---|---|---|
Problema | BFS - Parcurgere in latime | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:7:1: error: expected initializer before 'int'
7 | int n,m,start,x,y;
| ^~~
main.cpp: In function 'void BFS(int)':
main.cpp:14:5: error: 'orase' was not declared in this scope
14 | orase.push(start);
| ^~~~~
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: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:31:10: error: 'n' was not declared in this scope; did you mean 'yn'?
31 | fin>>n>>m>>start;
| ^
| yn
main.cpp:31:13: error: 'm' was not declared in this scope; did you mean 'tm'?
31 | fin>>n>>m>>start;
| ^
| tm
main.cpp:31:16: error: 'start' was not declared in this scope
31 | fin>>n>>m>>start;
| ^~~~~
main.cpp:32:16: error: 'x' was not declared in this scope
32 | while(fin>>x>>y){
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !