Pagini recente » Borderou de evaluare (job #2283673) | Borderou de evaluare (job #2517989) | Borderou de evaluare (job #429440) | Borderou de evaluare (job #1131705) | Borderou de evaluare (job #1188696)
Borderou de evaluare (job #1188696)
Raport evaluator
Compilare:
user.cpp: In function ‘void read()’:
user.cpp:16:26: warning: format ‘%f’ expects argument of type ‘float*’, but argument 2 has type ‘double*’ [-Wformat=]
scanf ("%f%f", &A, &B);
^
user.cpp:16:26: warning: format ‘%f’ expects argument of type ‘float*’, but argument 3 has type ‘double*’ [-Wformat=]
user.cpp:17:28: warning: format ‘%f’ expects argument of type ‘float*’, but argument 2 has type ‘double*’ [-Wformat=]
scanf ("%f%f", &X0, &Y0);
^
user.cpp:17:28: warning: format ‘%f’ expects argument of type ‘float*’, but argument 3 has type ‘double*’ [-Wformat=]
user.cpp: In function ‘void solve()’:
user.cpp:30:26: warning: unused variable ‘dist3’ [-Wunused-variable]
double dist1, dist2, dist3, X1, Y1, X2, Y2, X3, Y3;
^
user.cpp:30:49: warning: unused variable ‘X3’ [-Wunused-variable]
double dist1, dist2, dist3, X1, Y1, X2, Y2, X3, Y3;
^
user.cpp:30:53: warning: unused variable ‘Y3’ [-Wunused-variable]
double dist1, dist2, dist3, X1, Y1, X2, Y2, X3, Y3;
^
user.cpp: In function ‘void read()’:
user.cpp:16:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf ("%f%f", &A, &B);
^
user.cpp:17:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf ("%f%f", &X0, &Y0);
^
user.cpp: In function ‘int main()’:
user.cpp:55:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("distanta.in", "r", stdin);
^
user.cpp:56:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("distanta.out", "w", stdout);
^
user.cpp:58:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d", &T);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 4ms | 340kb | Raspuns gresit | 0 |
Punctaj total | 0 |