Borderou de evaluare (job #1976054)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:36:64: warning: format ‘%lf’ expects argument of type ‘double*’, but argument 3 has type ‘long double*’ [-Wformat=]
fscanf(f,"%lf%lf%lf%lf",&A[i].x,&A[i].y,&B[i].x,&B[i].y);
^
user.cpp:36:64: warning: format ‘%lf’ expects argument of type ‘double*’, but argument 4 has type ‘long double*’ [-Wformat=]
user.cpp:36:64: warning: format ‘%lf’ expects argument of type ‘double*’, but argument 5 has type ‘long double*’ [-Wformat=]
user.cpp:36:64: warning: format ‘%lf’ expects argument of type ‘double*’, but argument 6 has type ‘long double*’ [-Wformat=]
user.cpp:55:61: warning: format ‘%f’ expects argument of type ‘double’, but argument 3 has type ‘long double’ [-Wformat=]
else fprintf(g,"%.10f %.10f %.10f %.10f",a.x,a.y,b.x,b.y);
^
user.cpp:55:61: warning: format ‘%f’ expects argument of type ‘double’, but argument 4 has type ‘long double’ [-Wformat=]
user.cpp:55:61: warning: format ‘%f’ expects argument of type ‘double’, but argument 5 has type ‘long double’ [-Wformat=]
user.cpp:55:61: warning: format ‘%f’ expects argument of type ‘double’, but argument 6 has type ‘long double’ [-Wformat=]
user.cpp:33:22: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d",&N);
^
user.cpp:36:65: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%lf%lf%lf%lf",&A[i].x,&A[i].y,&B[i].x,&B[i].y);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 0ms | 376kb | Raspuns gresit | 0 | 0 |
2 | 0ms | 372kb | Raspuns gresit | 0 | 0 |
3 | 0ms | 372kb | Raspuns gresit | 0 | 0 |
4 | 0ms | 368kb | Raspuns gresit | 0 | 0 |
5 | 8ms | 368kb | Raspuns gresit | 0 | 0 |
6 | 4ms | 372kb | Raspuns gresit | 0 |
7 | 8ms | 376kb | Raspuns gresit | 0 | 0 |
8 | 8ms | 372kb | Raspuns gresit | 0 |
9 | 8ms | 376kb | Raspuns gresit | 0 | 0 |
10 | 8ms | 376kb | Raspuns gresit | 0 |
Punctaj total | 0 |