Borderou de evaluare (job #1487329)

Utilizator BlaugranasEnal Gemaledin Blaugranas Data 16 septembrie 2015 18:00:04
Problema Tritzi Status done
Runda Arhiva de probleme Compilator c | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.c: In function ‘main’: user.c:23:5: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘long int *’ [-Wformat=] freopen("tritzi.in","r",stdin),freopen("tritzi.out","w",stdout),scanf("%d",&t); ^ user.c:25:9: warning: passing argument 1 of ‘C’ from incompatible pointer type [enabled by default] scanf("%ld%ld",&n,&p),a[0][0]=a[0][2]=a[1][1]=a[1][2]=a[2][0]=a[2][1]=a[2][2]=1,a[0][1]=a[1][0]=0,C(d,a),P(e,a,a),n--; ^ user.c:10:6: note: expected ‘int (*)[3]’ but argument is of type ‘long int (*)[3]’ void C(int d[][3],int a[][3]) { ^ user.c:25:9: warning: passing argument 2 of ‘C’ from incompatible pointer type [enabled by default] scanf("%ld%ld",&n,&p),a[0][0]=a[0][2]=a[1][1]=a[1][2]=a[2][0]=a[2][1]=a[2][2]=1,a[0][1]=a[1][0]=0,C(d,a),P(e,a,a),n--; ^ user.c:10:6: note: expected ‘int (*)[3]’ but argument is of type ‘long int (*)[3]’ void C(int d[][3],int a[][3]) { ^ user.c:25:9: warning: passing argument 1 of ‘P’ from incompatible pointer type [enabled by default] scanf("%ld%ld",&n,&p),a[0][0]=a[0][2]=a[1][1]=a[1][2]=a[2][0]=a[2][1]=a[2][2]=1,a[0][1]=a[1][0]=0,C(d,a),P(e,a,a),n--; ^ user.c:15:6: note: expected ‘int (*)[3]’ but argument is of type ‘long int (*)[3]’ void P(int a[][3],int b[][3],int c[][3]) { ^ user.c:25:9: warning: passing argument 2 of ‘P’ from incompatible pointer type [enabled by default] scanf("%ld%ld",&n,&p),a[0][0]=a[0][2]=a[1][1]=a[1][2]=a[2][0]=a[2][1]=a[2][2]=1,a[0][1]=a[1][0]=0,C(d,a),P(e,a,a),n--; ^ user.c:15:6: note: expected ‘int (*)[3]’ but argument is of type ‘long int (*)[3]’ void P(int a[][3],int b[][3],int c[][3]) { ^ user.c:25:9: warning: passing argument 3 of ‘P’ from incompatible pointer type [enabled by default] scanf("%ld%ld",&n,&p),a[0][0]=a[0][2]=a[1][1]=a[1][2]=a[2][0]=a[2][1]=a[2][2]=1,a[0][1]=a[1][0]=0,C(d,a),P(e,a,a),n--; ^ user.c:15:6: note: expected ‘int (*)[3]’ but argument is of type ‘long int (*)[3]’ void P(int a[][3],int b[][3],int c[][3]) { ^ user.c:27:13: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] printf("%d\n",(3%p)); ^ user.c:32:17: warning: passing argument 1 of ‘P’ from incompatible pointer type [enabled by default] P(b,d,e),P(c,d,d),C(d,c),C(e,b); ^ user.c:15:6: note: expected ‘int (*)[3]’ but argument is of type ‘long int (*)[3]’ void P(int a[][3],int b[][3],int c[][3]) { ^ user.c:32:17: warning: passing argument 2 of ‘P’ from incompatible pointer type [enabled by default] P(b,d,e),P(c,d,d),C(d,c),C(e,b); ^ user.c:15:6: note: expected ‘int (*)[3]’ but argument is of type ‘long int (*)[3]’ void P(int a[][3],int b[][3],int c[][3]) { ^ user.c:32:17: warning: passing argument 3 of ‘P’ from incompatible pointer type [enabled by default]
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms264kbOK100
Punctaj total100

Ceva nu functioneaza?