Borderou de evaluare (job #1217571)

Utilizator raztviVoicu Razvan raztvi Data 7 august 2014 19:18:17
Problema Jocul Flip Status done
Runda Arhiva de probleme Compilator c | Vezi sursa
Scor 30

Raport evaluator

Compilare: user.c: In function ‘citeste’: user.c:9:5: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘long int *’ [-Wformat=] fscanf(f,"%d",&a[i][j]); ^ user.c: In function ‘sum’: user.c:55:5: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] fprintf(g,"%d",s); ^ user.c: In function ‘main’: user.c:66:5: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘long int *’ [-Wformat=] fscanf(f,"%d%d",&n,&m); ^ user.c:66:5: warning: format ‘%d’ expects argument of type ‘int *’, but argument 4 has type ‘long int *’ [-Wformat=] user.c:69:1: warning: passing argument 1 of ‘citeste’ from incompatible pointer type [enabled by default] citeste(a,m,n); ^ user.c:5:6: note: expected ‘long int (*)[16]’ but argument is of type ‘long int (*)[10]’ void citeste(long a[16][16],int m,int n) ^ user.c:72:1: warning: passing argument 1 of ‘coloana’ from incompatible pointer type [enabled by default] coloana(a,m,n); ^ user.c:26:5: note: expected ‘long int (*)[16]’ but argument is of type ‘long int (*)[10]’ int coloana(long a[16][16],int m,int n) ^ user.c:74:1: warning: passing argument 1 of ‘linie’ from incompatible pointer type [enabled by default] linie(a,m,n); ^ user.c:13:5: note: expected ‘long int (*)[16]’ but argument is of type ‘long int (*)[10]’ int linie(long a[16][16],int m,int n) ^ user.c:77:1: warning: passing argument 1 of ‘sum’ from incompatible pointer type [enabled by default] sum(a,m,n); ^ user.c:48:5: note: expected ‘long int (*)[16]’ but argument is of type ‘long int (*)[10]’ int sum(long a[16][16],int m,int n) ^ user.c:59:19: warning: unused variable ‘j’ [-Wunused-variable] {long a[10][10],i,j,n,m; ^ user.c:59:17: warning: unused variable ‘i’ [-Wunused-variable] {long a[10][10],i,j,n,m; ^ user.c: In function ‘citeste’: user.c:9:11: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d",&a[i][j]); ^ user.c: In function ‘linie’: user.c:24:1: warning: control reaches end of non-void function [-Wreturn-type] }
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms256kbOk!10
20ms256kbRaspuns gresit0
30ms256kbOk!10
40ms256kbOk!10
50ms252kbKilled by signal 11(SIGSEGV).0
60ms248kbKilled by signal 11(SIGSEGV).0
70ms248kbKilled by signal 11(SIGSEGV).0
80ms244kbKilled by signal 11(SIGSEGV).0
90ms252kbKilled by signal 11(SIGSEGV).0
100ms248kbKilled by signal 11(SIGSEGV).0
Punctaj total30

Ceva nu functioneaza?