Borderou de evaluare (job #3229745)

Utilizator gabriel.9619Gabriel Stefan Tita gabriel.9619 Data 17 mai 2024 11:53:56
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:48:34: warning: 'drmax' may be used uninitialized [-Wmaybe-uninitialized] 48 | fout<<smax<<" "<<stmax<<" "<<drmax; | ^~~~~ main.cpp:8:53: note: 'drmax' was declared here 8 | int n, i, s=0, x, smax=-INT_MAX, st, stmax, dr, drmax; | ^~~~~ main.cpp:48:29: warning: 'stmax' may be used uninitialized [-Wmaybe-uninitialized] 48 | fout<<smax<<" "<<stmax<<" "<<drmax; | ^~~ main.cpp:8:42: note: 'stmax' was declared here 8 | int n, i, s=0, x, smax=-INT_MAX, st, stmax, dr, drmax; | ^~~~~ main.cpp:40:34: warning: 'st' may be used uninitialized [-Wmaybe-uninitialized] 40 | if(drmax-stmax>dr-st) | ~~^~~ main.cpp:8:38: note: 'st' was declared here 8 | int n, i, s=0, x, smax=-INT_MAX, st, stmax, dr, drmax; | ^~
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbIncorect0
20ms303kbOK5
30ms303kbOK5
40ms303kbIncorect0
50ms303kbIncorect0
60ms303kbOK5
71ms303kbIncorect0
81ms303kbOK5
94ms303kbIncorect0
109ms303kbOK5
1114ms303kbIncorect0
1224ms303kbIncorect0
1329ms303kbOK5
1439ms303kbOK5
15193ms303kbOK5
16208ms303kbOK5
17208ms303kbOK5
18238ms303kbOK5
19228ms303kbOK5
20233ms303kbOK5
Punctaj total65

Ceva nu functioneaza?