Borderou de evaluare (job #1300929)

Utilizator robertc1Robert Ciobotaru robertc1 Data 25 decembrie 2014 03:58:37
Problema DistanceSum Status done
Runda Happy Birthday Infoarena 2014 Compilator c | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.c: In function ‘main’: user.c:24:9: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘long long int *’ [-Wformat=] fscanf(fin,"%d",&A[i].x); ^ user.c:25:9: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘long long int *’ [-Wformat=] fscanf(fin,"%d",&A[i].y); ^ user.c:29:9: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘long long int *’ [-Wformat=] fscanf(fin,"%d",&B[i].x); ^ user.c:30:9: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘long long int *’ [-Wformat=] fscanf(fin,"%d",&B[i].y); ^ user.c:40:13: warning: implicit declaration of function ‘abs’ [-Wimplicit-function-declaration] d1=abs(A[i].x-B[j].x); ^ user.c:42:13: warning: implicit declaration of function ‘max’ [-Wimplicit-function-declaration] S=S+max(d1,d2); ^ user.c:44:5: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=] fprintf(fout,"%d\n",S); ^ user.c:18:21: warning: unused variable ‘y’ [-Wunused-variable] long long int x,y,d1,d2,i,j; ^ user.c:18:19: warning: unused variable ‘x’ [-Wunused-variable] long long int x,y,d1,d2,i,j; ^ user.c: In function ‘abs’: user.c:50:5: warning: type of ‘x’ defaults to ‘int’ [enabled by default] int abs(x) ^ user.c: In function ‘main’: user.c:20:11: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin,"%d",&n); ^ user.c:21:11: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin,"%d",&m); ^ user.c:24:15: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin,"%d",&A[i].x); ^ user.c:25:15: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin,"%d",&A[i].y); ^ user.c:29:15: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin,"%d",&B[i].x); ^ user.c:30:15: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin,"%d",&B[i].y);
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms268kbIncorect0
28ms296kbIncorect0
38ms296kbIncorect0
4Depăşit1204kbTime limit exceeded.0
5Depăşit1204kbTime limit exceeded.0
6Depăşit3380kbTime limit exceeded.0
7Depăşit3380kbTime limit exceeded.0
8Depăşit3376kbTime limit exceeded.0
9Depăşit3384kbTime limit exceeded.0
10Depăşit3376kbTime limit exceeded.0
Punctaj total0

Ceva nu functioneaza?