Borderou de evaluare (job #2958137)

Utilizator ingrid2328Nagy Ingrid ingrid2328 Data 24 decembrie 2022 20:07:22
Problema Subsecventa de suma maxima Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 5

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:12:48: warning: overflow in conversion from 'long int' to 'int' changes value from '-9999999999' to '-1410065407' [-Woverflow] 12 | int n, i, v[6000001], best[6000001], bestsum=-9999999999, r1 = 1, r2 = 0; | ^~~~~~~~~~~ main.cpp:14:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 14 | for (i = 1; i <= n; i++) | ^~~ main.cpp:16:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 16 | best [0]=-9999999999; | ^~~~ main.cpp:16:14: warning: overflow in conversion from 'long int' to 'int' changes value from '-9999999999' to '-1410065407' [-Woverflow] 16 | best [0]=-9999999999; | ^~~~~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms184kbOK5
20ms184kbIncorect0
30ms184kbIncorect0
40ms184kbIncorect0
50ms184kbIncorect0
60ms184kbIncorect0
70ms184kbIncorect0
80ms184kbIncorect0
95ms479kbIncorect0
1020ms1847kbIncorect0
1137ms3469kbIncorect0
1257ms5050kbIncorect0
1380ms6680kbIncorect0
1499ms8167kbIncorect0
15462ms40308kbIncorect0
16508ms44261kbIncorect0
17515ms44298kbIncorect0
18558ms48308kbIncorect0
19557ms48349kbIncorect0
20557ms48304kbIncorect0
Punctaj total5

Ceva nu functioneaza?