Borderou de evaluare (job #1487329)
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 |
1 | 0ms | 264kb | OK | 100 |
Punctaj total | 100 |