Borderou de evaluare (job #3235262)

Utilizator mateilupuMatei Lupu mateilupu Data 16 iunie 2024 17:28:22
Problema Subsecventa de suma maxima Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 60

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:9:15: warning: unused variable 'j' [-Wunused-variable] 9 | int n, i, j, max = 0, stmax, drmax, x, s, st; | ^ main.cpp:24:43: warning: 'drmax' may be used uninitialized [-Wmaybe-uninitialized] 24 | cout << max << " " << stmax << " " << drmax; | ^~~~~ main.cpp:9:34: note: 'drmax' was declared here 9 | int n, i, j, max = 0, stmax, drmax, x, s, st; | ^~~~~ main.cpp:24:36: warning: 'stmax' may be used uninitialized [-Wmaybe-uninitialized] 24 | cout << max << " " << stmax << " " << drmax; | ^~~ main.cpp:9:27: note: 'stmax' was declared here 9 | int n, i, j, max = 0, stmax, drmax, x, s, st; | ^~~~~ main.cpp:13:9: warning: 's' may be used uninitialized [-Wmaybe-uninitialized] 13 | if(s < 0) { | ^~ main.cpp:9:44: note: 's' was declared here 9 | int n, i, j, max = 0, stmax, drmax, x, s, st; | ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbIncorect0
20ms303kbOK5
30ms303kbIncorect0
40ms303kbIncorect0
50ms303kbOK5
60ms303kbIncorect0
71ms303kbIncorect0
81ms303kbOK5
94ms303kbOK5
104ms303kbOK5
1114ms303kbOK5
1224ms303kbOK5
1329ms303kbOK5
1439ms303kbIncorect0
15188ms303kbOK5
16218ms303kbOK5
17208ms303kbIncorect0
18228ms303kbIncorect0
19233ms303kbOK5
20228ms303kbOK5
Punctaj total60

Ceva nu functioneaza?