Pagini recente » Cod sursa (job #879989) | Borderou de evaluare (job #2678003) | Borderou de evaluare (job #1271654) | Cod sursa (job #970080) | Borderou de evaluare (job #2323695)
Borderou de evaluare (job #2323695)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:35:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen ("avele.in", "r", stdin);
^
main.cpp:36:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen ("avele.out", "w", stdout);
^
main.cpp:38:45: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d%d%d", &n, &cost_add, &cost_rem);
^
main.cpp:41:33: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d%d", &l[i], &r[i]);
^
main.cpp:47:14: warning: iteration 58 invokes undefined behavior [-Waggressive-loop-optimizations]
dp[0][i] = cost_add + dp[0][i - 1] + dp[0][i - 2];
~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:46:17: note: within this loop
for (i = 2; i <= LIM; i++)
~~^~~~~~
main.cpp:33:6: warning: 'sol' may be used uninitialized in this function [-Wmaybe-uninitialized]
ll sol;
^~~
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 3ms | 131kb | OK | 5 |
| 2 | 3ms | 131kb | Incorect | 0 |
| 3 | 3ms | 262kb | Incorect | 0 |
| 4 | 3ms | 393kb | Incorect | 0 |
| 5 | 4ms | 655kb | Incorect | 0 |
| 6 | 6ms | 1179kb | Incorect | 0 |
| 7 | 6ms | 1179kb | Incorect | 0 |
| 8 | 6ms | 1179kb | Incorect | 0 |
| 9 | 12ms | 2621kb | Incorect | 0 |
| 10 | 32ms | 7471kb | Incorect | 0 |
| 11 | 53ms | 12451kb | Incorect | 0 |
| 12 | 72ms | 17301kb | Incorect | 0 |
| 13 | 93ms | 22282kb | Incorect | 0 |
| 14 | 99ms | 27262kb | Incorect | 0 |
| 15 | 130ms | 31981kb | Incorect | 0 |
| 16 | 143ms | 36831kb | Incorect | 0 |
| 17 | 156ms | 41811kb | Incorect | 0 |
| 18 | 172ms | 46661kb | Incorect | 0 |
| 19 | 203ms | 49152kb | Killed by Signal 11 | 0 |
| 20 | 192ms | 49209kb | Killed by Signal 11 | 0 |
| Punctaj total | 5 |