Pagini recente » Borderou de evaluare (job #1805413) | Borderou de evaluare (job #1997517) | Borderou de evaluare (job #2832351) | Borderou de evaluare (job #1451412) | Borderou de evaluare (job #1711463)
Borderou de evaluare (job #1711463)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:56:25: warning: format ‘%Lf’ expects argument of type ‘long double*’, but argument 3 has type ‘double*’ [-Wformat=]
scanf("%d %Lf", &n, &w);
^
user.cpp:58:60: warning: format ‘%Lf’ expects argument of type ‘long double*’, but argument 2 has type ‘double*’ [-Wformat=]
for (i = 0; i < n; ++i) scanf("%Lf %Lf", &P[i].x, &P[i].y);
^
user.cpp:58:60: warning: format ‘%Lf’ expects argument of type ‘long double*’, but argument 3 has type ‘double*’ [-Wformat=]
user.cpp:48:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("norocoase.in", "r", stdin);
^
user.cpp:49:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("norocoase.out", "w", stdout);
^
user.cpp:54:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for (scanf("%d", &t); t; --t)
^
user.cpp:56:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %Lf", &n, &w);
^
user.cpp:58:61: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for (i = 0; i < n; ++i) scanf("%Lf %Lf", &P[i].x, &P[i].y);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | Depăşit | 480kb | Time limit exceeded. | 0 |
Punctaj total | 0 |