Borderou de evaluare (job #2925369)
Utilizator | Data | 15 octombrie 2022 08:31:20 | |
---|---|---|---|
Problema | Problema cu becuri | Status | done |
Runda | Arhiva Monthly | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:7:26: error: 's' does not name a type
7 | ofstream cout("pcb.out");s
| ^
main.cpp:9:10: error: 'nmax' was not declared in this scope
9 | int dist[nmax];
| ^~~~
main.cpp:10:19: error: 'nmax' was not declared in this scope
10 | vector <int> edge[nmax];
| ^~~~
main.cpp: In function 'void bfs()':
main.cpp:15:5: error: 'dist' was not declared in this scope
15 | dist[0] = 1;
| ^~~~
main.cpp:19:28: error: 'edge' was not declared in this scope
19 | for(int i = 0; i < edge[x].size(); i++){
| ^~~~
main.cpp: In function 'int main()':
main.cpp:35:9: error: 'edge' was not declared in this scope
35 | edge[a - 1].push_back(b);
| ^~~~
main.cpp:39:13: error: 'dist' was not declared in this scope
39 | cout << dist[k] - 1;
| ^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !