Borderou de evaluare (job #3228980)

Utilizator amalia_ghicaAmalia Ghica amalia_ghica Data 12 mai 2024 18:59:16
Problema Vase Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 45

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:65:5: warning: 'parted' may be used uninitialized [-Wmaybe-uninitialized] 65 | if(parted == -1){ | ^~ main.cpp:9:74: note: 'parted' was declared here 9 | int n, i, a, hcur = 0, x, pozs = 0, pozd = 0, parte, hs, hd, partes, parted; | ^~~~~~ main.cpp:59:5: warning: 'partes' may be used uninitialized [-Wmaybe-uninitialized] 59 | if(partes == -1){ | ^~ main.cpp:9:66: note: 'partes' was declared here 9 | int n, i, a, hcur = 0, x, pozs = 0, pozd = 0, parte, hs, hd, partes, parted; | ^~~~~~ main.cpp:64:19: warning: 'hd' may be used uninitialized [-Wmaybe-uninitialized] 64 | fout << hd << " "; | ^~~ main.cpp:9:62: note: 'hd' was declared here 9 | int n, i, a, hcur = 0, x, pozs = 0, pozd = 0, parte, hs, hd, partes, parted; | ^~ main.cpp:58:19: warning: 'hs' may be used uninitialized [-Wmaybe-uninitialized] 58 | fout << hs << " "; | ^~~ main.cpp:9:58: note: 'hs' was declared here 9 | int n, i, a, hcur = 0, x, pozs = 0, pozd = 0, parte, hs, hd, partes, parted; | ^~
Test Timp executie Memorie folosita Mesaj Punctaj/test
16ms1081kbRaspuns gresit0
20ms303kbOK5
35ms1085kbRaspuns gresit0
45ms1081kbRaspuns gresit0
50ms303kbPrimul numar corect1
60ms303kbPrimul numar corect1
70ms303kbOK5
80ms303kbPrimul numar corect1
92ms557kbPrimul numar corect1
102ms557kbOK5
110ms303kbOK5
124ms819kbRaspuns gresit0
134ms819kbRaspuns gresit0
140ms303kbPrimul numar corect1
150ms303kbOK5
160ms303kbOK5
176ms1081kbRaspuns gresit0
186ms1081kbRaspuns gresit0
194ms819kbOK5
200ms303kbOK5
Punctaj total45

Ceva nu functioneaza?