Borderou de evaluare (job #2359151)
| Utilizator | Data | 28 februarie 2019 17:54:25 | |
|---|---|---|---|
| Problema | BFS - Parcurgere in latime | Status | done |
| Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp:8:16: error: 'NMAX' was not declared in this scope
vector <int> v[NMAX];
^~~~
main.cpp:9:7: error: 'NMAX' was not declared in this scope
int c[NMAX],viz[NMAX],dist[NMAX];
^~~~
main.cpp:9:17: error: 'NMAX' was not declared in this scope
int c[NMAX],viz[NMAX],dist[NMAX];
^~~~
main.cpp:9:28: error: 'NMAX' was not declared in this scope
int c[NMAX],viz[NMAX],dist[NMAX];
^~~~
main.cpp: In function 'void bfs(int)':
main.cpp:18:5: error: 'c' was not declared in this scope
c[u]=x; viz[x]=1; dist[x]=0;
^
main.cpp:18:13: error: 'viz' was not declared in this scope
c[u]=x; viz[x]=1; dist[x]=0;
^~~
main.cpp:18:23: error: 'dist' was not declared in this scope
c[u]=x; viz[x]=1; dist[x]=0;
^~~~
main.cpp:22:20: error: 'v' was not declared in this scope
for(auto i:v[x])
^
main.cpp:24:16: error: 'vizitat' was not declared in this scope
if(vizitat[i]==0)
^~~~~~~
main.cpp: In function 'int main()':
main.cpp:42:9: error: 'v' was not declared in this scope
v[x].push_back(y);
^
main.cpp:47:12: error: 'viz' was not declared in this scope
if(viz[i]==1) fout<<dist[i]<<" ";
^~~
main.cpp:47:29: error: 'dist' was not declared in this scope
if(viz[i]==1) 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 !
