Pagini recente » Borderou de evaluare (job #1582766) | Borderou de evaluare (job #1072724) | Borderou de evaluare (job #2317939) | Borderou de evaluare (job #2146843) | Borderou de evaluare (job #1619766)
Borderou de evaluare (job #1619766)
Raport evaluator
Compilare:
user.cpp: In function ‘void readData()’:
user.cpp:58:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
user.cpp:60:57: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%lf%lf%lf", &p[i].x, &p[i].y, &p[i].dist);
^
user.cpp: In function ‘void runDP()’:
user.cpp:97:9: warning: array subscript is above array bounds [-Warray-bounds]
dp[2][2] = (double)p[2].dist * dist(p[1], p[3]) / 2;
^
user.cpp:100:38: warning: array subscript is above array bounds [-Warray-bounds]
dp[2][i] = max(current + dp[2][i - 2], dp[2][i - 1]);
^
user.cpp:100:52: warning: array subscript is above array bounds [-Warray-bounds]
dp[2][i] = max(current + dp[2][i - 2], dp[2][i - 1]);
^
user.cpp:100:13: warning: array subscript is above array bounds [-Warray-bounds]
dp[2][i] = max(current + dp[2][i - 2], dp[2][i - 1]);
^
user.cpp:103:42: warning: array subscript is above array bounds [-Warray-bounds]
printf("%.7f", max(dp[1][n - 1], dp[2][n]));
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 0ms | 316kb | Corect | 5 |
| 2 | 0ms | 320kb | Corect | 5 |
| 3 | 0ms | 316kb | Corect | 5 |
| 4 | 0ms | 328kb | Corect | 5 |
| 5 | 0ms | 324kb | Corect | 5 |
| 6 | 0ms | 320kb | Corect | 5 |
| 7 | 0ms | 320kb | Corect | 5 |
| 8 | 0ms | 320kb | Corect | 5 |
| 9 | 0ms | 324kb | Incorect | 0 |
| 10 | 0ms | 332kb | Corect | 5 |
| 11 | 0ms | 336kb | Incorect | 0 |
| 12 | 0ms | 332kb | Corect | 5 |
| 13 | 0ms | 340kb | Incorect | 0 |
| 14 | 0ms | 344kb | Incorect | 0 |
| 15 | 0ms | 348kb | Incorect | 0 |
| 16 | 0ms | 348kb | Incorect | 0 |
| 17 | 0ms | 340kb | Incorect | 0 |
| 18 | 0ms | 340kb | Incorect | 0 |
| 19 | 0ms | 340kb | Incorect | 0 |
| 20 | 0ms | 348kb | Incorect | 0 |
| Punctaj total | 50 |