Pagini recente » Borderou de evaluare (job #3341819) | Borderou de evaluare (job #3351325) | Borderou de evaluare (job #1190856) | Borderou de evaluare (job #758112) | Borderou de evaluare (job #3342536)
Borderou de evaluare (job #3342536)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:31:11: warning: 'left_max' may be used uninitialized [-Wmaybe-uninitialized]
31 | printf("%d %d %d", result, left_max, right_max);
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:13:21: note: 'left_max' was declared here
13 | int result = 0, left_max = 1, right_max = 1;
| ^~~~~~~~
main.cpp:24:59: warning: 'current_left' may be used uninitialized [-Wmaybe-uninitialized]
24 | if(current_sum > result || (current_sum == result && (left_max > current_left || (right_max - left_max + 1 > i - current_left + 1)))){
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:14:26: note: 'current_left' was declared here
14 | int current_sum = 0, current_left;
| ^~~~~~~~~~~~
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 0ms | 303kb | OK | 5 |
| 2 | 0ms | 303kb | OK | 5 |
| 3 | 0ms | 303kb | Incorect | 0 |
| 4 | 0ms | 303kb | OK | 5 |
| 5 | 0ms | 303kb | OK | 5 |
| 6 | 1ms | 303kb | OK | 5 |
| 7 | 1ms | 303kb | OK | 5 |
| 8 | 2ms | 303kb | OK | 5 |
| 9 | 6ms | 303kb | OK | 5 |
| 10 | 9ms | 303kb | OK | 5 |
| 11 | 24ms | 303kb | OK | 5 |
| 12 | 38ms | 303kb | OK | 5 |
| 13 | 49ms | 303kb | OK | 5 |
| 14 | 64ms | 303kb | OK | 5 |
| 15 | 291ms | 303kb | OK | 5 |
| 16 | 322ms | 303kb | OK | 5 |
| 17 | 326ms | 303kb | OK | 5 |
| 18 | 353ms | 303kb | OK | 5 |
| 19 | 351ms | 303kb | OK | 5 |
| 20 | 351ms | 303kb | OK | 5 |
| Punctaj total | 95 |