Borderou de evaluare (job #1015709)

Utilizator MarghescuGabriel Marghescu Marghescu Data 24 octombrie 2013 23:59:10
Problema Algoritmul lui Dijkstra Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:2:2: error: invalid preprocessing directive #defe #defe NMAX 50002 ^ user.cpp:9:25: error: ‘NMAX’ was not declared in this scope int n,m,a[1400][1400],d[NMAX],s[NMAX],p[NMAX]; ^ user.cpp:9:33: error: ‘NMAX’ was not declared in this scope int n,m,a[1400][1400],d[NMAX],s[NMAX],p[NMAX]; ^ user.cpp:9:41: error: ‘NMAX’ was not declared in this scope int n,m,a[1400][1400],d[NMAX],s[NMAX],p[NMAX]; ^ user.cpp:10:15: error: ‘NMAX’ was not declared in this scope const int INF=NMAX; ^ user.cpp: In function ‘void Dijkstra(int)’: user.cpp:36:5: error: ‘s’ was not declared in this scope s[x]=1; ^ user.cpp:39:9: error: ‘d’ was not declared in this scope d[i]=a[x][i]; ^ user.cpp:42:13: error: ‘p’ was not declared in this scope p[i]=x; ^ user.cpp:49:28: error: ‘d’ was not declared in this scope if (s[j]==0 && d[j]<minim) ^ user.cpp:58:28: error: ‘d’ was not declared in this scope if (s[j]==0 && d[j]>d[y]+a[y][j]) ^ user.cpp:61:17: error: ‘p’ was not declared in this scope p[j]=y; ^ user.cpp: In function ‘void print(int)’: user.cpp:72:13: error: ‘p’ was not declared in this scope if (p[i]!=0) ^ user.cpp:74:17: error: ‘d’ was not declared in this scope if (d[i]==INF) ^ user.cpp:76:16: error: ‘d’ was not declared in this scope g<<d[i]<<" "; ^

Ceva nu functioneaza?