Pagini recente » Borderou de evaluare (job #1707428) | Borderou de evaluare (job #2154643) | Borderou de evaluare (job #901596) | Borderou de evaluare (job #274459) | Borderou de evaluare (job #2467266)
Borderou de evaluare (job #2467266)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:30:35: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
printf("%d\n", D[l][maxWeight]);
^
main.cpp:14:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("rucsac.in", "r", stdin);
^
main.cpp:15:39: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("rucsac.out", "w", stdout);
^
main.cpp:16:34: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &maxWeight);
^
main.cpp:19:46: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &weight[i], &profit[i]);
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
| 1 | 2ms | 131kb | OK | 5 | 10 |
| 2 | 2ms | 131kb | OK | 5 |
| 3 | 2ms | 131kb | OK | 5 | 15 |
| 4 | 2ms | 131kb | OK | 5 |
| 5 | 3ms | 131kb | OK | 5 |
| 6 | 4ms | 131kb | OK | 5 | 10 |
| 7 | 4ms | 131kb | OK | 5 |
| 8 | 6ms | 131kb | OK | 5 | 15 |
| 9 | 5ms | 131kb | OK | 5 |
| 10 | 5ms | 131kb | OK | 5 |
| 11 | 54ms | 262kb | OK | 5 | 15 |
| 12 | 43ms | 262kb | OK | 5 |
| 13 | 44ms | 262kb | OK | 5 |
| 14 | 119ms | 393kb | Incorect | 0 | 0 |
| 15 | 155ms | 262kb | Incorect | 0 |
| 16 | 133ms | 262kb | Incorect | 0 |
| 17 | 83ms | 262kb | OK | 5 | 0 |
| 18 | 182ms | 262kb | Incorect | 0 |
| 19 | 130ms | 262kb | Incorect | 0 |
| 20 | 155ms | 262kb | Incorect | 0 |
| Punctaj total | 65 |