Borderou de evaluare (job #1536084)

Utilizator binicBinica Nicolae binic Data 25 noiembrie 2015 17:43:37
Problema Algoritmul lui Dijkstra Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:4:1: error: declaration does not declare anything [-fpermissive] int ; ^ user.cpp: In function ‘void Dijkstra(int)’: user.cpp:25:9: error: ‘i’ was not declared in this scope for(i=1;i<=l;i++) ^ user.cpp:27:13: error: expected primary-expression before ‘)’ token for() ^ user.cpp:27:13: error: expected ‘;’ before ‘)’ token user.cpp:28:5: error: expected primary-expression before ‘}’ token } ^ user.cpp:28:5: error: expected ‘;’ before ‘}’ token user.cpp:28:5: error: expected primary-expression before ‘}’ token user.cpp:28:5: error: expected ‘)’ before ‘}’ token user.cpp:28:5: error: expected primary-expression before ‘}’ token user.cpp:28:5: error: expected ‘;’ before ‘}’ token user.cpp: In function ‘int main()’: user.cpp:34:20: error: ‘n’ was not declared in this scope scanf("%d %d",&n,&m); ^ user.cpp:34:23: error: ‘m’ was not declared in this scope scanf("%d %d",&n,&m); ^ user.cpp:35:9: error: ‘i’ was not declared in this scope for(i=1;i<=m;i++) ^ user.cpp:37:27: error: ‘x’ was not declared in this scope scanf("%d %d %d",&x,&y,&c) ^ user.cpp:37:30: error: ‘y’ was not declared in this scope scanf("%d %d %d",&x,&y,&c) ^ user.cpp:37:33: error: ‘c’ was not declared in this scope scanf("%d %d %d",&x,&y,&c) ^ user.cpp:38:9: error: expected ‘;’ before ‘add’ add(v[x],y,c); ^ user.cpp:41:9: error: ‘i’ was not declared in this scope for(i=1;i<=n;i++) ^ user.cpp:42:9: error: ‘c’ was not declared in this scope c[i]=inf; ^ user.cpp:44:9: error: ‘i’ was not declared in this scope for(i=2;i<=n;i++) ^

Ceva nu functioneaza?