Borderou de evaluare (job #798279)

Utilizator avatar danihere Daniel Dubrovschi danihere IP ascuns
Problemă Brățara (clasele 5/6) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 30 nov. 2024 15:49:18 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int getFirstDigits(int)': main.cpp:25:12: warning: 'd2' may be used uninitialized [-Wmaybe-uninitialized] 25 | return d2; | ^~ main.cpp:21:17: note: 'd2' was declared here 21 | int d1 = 0, d2; | ^~ main.cpp: In function 'int main()': main.cpp:47:9: warning: 'd2' may be used uninitialized [-Wmaybe-uninitialized] 47 | if(getLastDigits(last_number) == getFirstDigits(c)) { | ^~ main.cpp:21:17: note: 'd2' was declared here 21 | int d1 = 0, d2; | ^~ main.cpp:49:46: warning: 'd2' may be used uninitialized [-Wmaybe-uninitialized] 49 | while(getLastDigits(last_number) == getFirstDigits(c)) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ main.cpp:21:17: note: 'd2' was declared here 21 | int d1 = 0, d2; | ^~