Borderou de evaluare (job #1191053)
Utilizator | Data | 26 mai 2014 14:02:22 | |
---|---|---|---|
Problema | Algoritmul lui Dijkstra | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:9:19: error: ‘n’ was not declared in this scope
scanf("%d%d",&n,&m);
^
user.cpp:9:22: error: ‘m’ was not declared in this scope
scanf("%d%d",&n,&m);
^
user.cpp:12:25: error: ‘x’ was not declared in this scope
scanf("%d%d%d",&x,&y,&c);
^
user.cpp:12:28: error: ‘y’ was not declared in this scope
scanf("%d%d%d",&x,&y,&c);
^
user.cpp:12:31: error: ‘c’ was not declared in this scope
scanf("%d%d%d",&x,&y,&c);
^
user.cpp:13:9: error: ‘v’ was not declared in this scope
v[x].push_back(make_pair(y,c));
^
user.cpp:13:37: error: ‘make_pair’ was not declared in this scope
v[x].push_back(make_pair(y,c));
^
user.cpp:15:9: error: ‘i’ was not declared in this scope
for(i=1;i<=n;i++)
^
user.cpp:17:9: error: ‘h’ was not declared in this scope
h[i]=p[i]=i;
^
user.cpp:17:14: error: ‘p’ was not declared in this scope
h[i]=p[i]=i;
^
user.cpp:18:9: error: ‘d’ was not declared in this scope
d[i]=oo;
^
user.cpp:18:14: error: ‘oo’ was not declared in this scope
d[i]=oo;
^
user.cpp:20:5: error: ‘d’ was not declared in this scope
d[1]=0;
^
user.cpp:21:5: error: ‘L’ was not declared in this scope
L=n;
^
user.cpp:22:15: error: ‘h’ was not declared in this scope
for(;L&&d[h[1]]<oo;)
^
user.cpp:22:21: error: ‘oo’ was not declared in this scope
for(;L&&d[h[1]]<oo;)
^
user.cpp:24:9: error: ‘x’ was not declared in this scope
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !