Borderou de evaluare (job #1187186)

Utilizator pavlov.ionPavlov Ion pavlov.ion Data 17 mai 2014 20:03:11
Problema Algoritmul lui Dijkstra Status done
Runda Arhiva educationala Compilator c | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.c: In function ‘citire’: user.c:9:2: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘long long int *’ [-Wformat=] scanf("%d",&N); ^ user.c:10:2: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘long long int *’ [-Wformat=] scanf("%d",&M); ^ user.c:20:3: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘long long int *’ [-Wformat=] scanf("%d %d %d",&i,&j,&cost); ^ user.c:20:3: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘long long int *’ [-Wformat=] user.c: In function ‘dijkstra’: user.c:54:4: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%d",d[i]); ^ user.c:26:28: warning: variable ‘pred’ set but not used [-Wunused-but-set-variable] long long viz[N+1],d[N+1],pred[N+1]; ^ user.c: In function ‘citire’: user.c:9:7: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&N); ^ user.c:10:7: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&M); ^ user.c:20:8: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d",&i,&j,&cost); ^ user.c: In function ‘main’: user.c:57:9: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] freopen("dijkstra.in","r",stdin); ^ user.c:58:9: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] freopen("dijkstra.out","w",stdout); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms252kbIncorect0
20ms256kbIncorect0
34ms2260kbIncorect0
48ms4204kbIncorect0
512msDepăşitMemory limit exceeded.0
612msDepăşitMemory limit exceeded.0
712msDepăşitMemory limit exceeded.0
844msDepăşitMemory limit exceeded.0
944msDepăşitMemory limit exceeded.0
1040msDepăşitMemory limit exceeded.0
Punctaj total0

Ceva nu functioneaza?