Borderou de evaluare (job #3229744)

Utilizator gabriel.9619Gabriel Stefan Tita gabriel.9619 Data 17 mai 2024 11:51:14
Problema Subsecventa de suma maxima Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 65

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:49:34: warning: 'drmax' may be used uninitialized [-Wmaybe-uninitialized] 49 | fout<<smax<<" "<<stmax<<" "<<drmax; | ^~~~~ main.cpp:7:54: note: 'drmax' was declared here 7 | int n, i, s=0, x, smax=-11111111, st, stmax, dr, drmax; | ^~~~~ main.cpp:49:29: warning: 'stmax' may be used uninitialized [-Wmaybe-uninitialized] 49 | fout<<smax<<" "<<stmax<<" "<<drmax; | ^~~ main.cpp:7:43: note: 'stmax' was declared here 7 | int n, i, s=0, x, smax=-11111111, st, stmax, dr, drmax; | ^~~~~ main.cpp:40:38: warning: 'st' may be used uninitialized [-Wmaybe-uninitialized] 40 | if(drmax-stmax>dr-st) | ~~^~~ main.cpp:7:39: note: 'st' was declared here 7 | int n, i, s=0, x, smax=-11111111, st, stmax, dr, drmax; | ^~
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbIncorect0
20ms303kbOK5
30ms303kbOK5
40ms303kbIncorect0
50ms303kbIncorect0
60ms303kbOK5
71ms303kbIncorect0
81ms303kbOK5
94ms303kbIncorect0
109ms303kbOK5
1114ms303kbIncorect0
1223ms303kbIncorect0
1329ms303kbOK5
1439ms303kbOK5
15188ms303kbOK5
16208ms303kbOK5
17213ms303kbOK5
18228ms303kbOK5
19228ms303kbOK5
20228ms303kbOK5
Punctaj total65

Ceva nu functioneaza?