Borderou de evaluare (job #3247373)

Utilizator cristibogdanPatrascu Cristian cristibogdan Data 7 octombrie 2024 14:12:16
Problema Subsecventa de suma maxima Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 90

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:12:12: warning: unused variable 'sum' [-Wunused-variable] 12 | int n, sum = 0, st, dr, mare = -1, st_max; | ^~~ main.cpp:35:38: warning: 'st_max' may be used uninitialized [-Wmaybe-uninitialized] 35 | fout << mare << " " << st_max << " " << dr; | ^~~ main.cpp:12:40: note: 'st_max' was declared here 12 | int n, sum = 0, st, dr, mare = -1, st_max; | ^~~~~~ main.cpp:35:45: warning: 'dr' may be used uninitialized [-Wmaybe-uninitialized] 35 | fout << mare << " " << st_max << " " << dr; | ^~ main.cpp:12:25: note: 'dr' was declared here 12 | int n, sum = 0, st, dr, mare = -1, st_max; | ^~
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbOK5
20ms303kbIncorect0
30ms307kbIncorect0
40ms303kbOK5
50ms303kbOK5
60ms303kbOK5
71ms557kbOK5
81ms557kbOK5
94ms1081kbOK5
109ms1966kbOK5
1114ms1576kbOK5
1224ms2441kbOK5
1334ms3379kbOK5
1443ms4186kbOK5
15208ms39141kbOK5
16227ms40861kbOK5
17228ms39636kbOK5
18248ms44732kbOK5
19278ms47321kbOK5
20248ms44367kbOK5
Punctaj total90

Ceva nu functioneaza?