Error ! | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 2

Error !

https://code.sololearn.com/cMb4XM0bT2gj/?ref=app This code is giving me an error :- Variable d , m and y might not have been initialized.šŸ¤”šŸ¤”šŸ¤” Any help guys...

30th Nov 2017, 2:43 PM
Hemant Jaiswal
Hemant Jaiswal - avatar
2 Respostas
+ 10
Initialize them with a value, in your case, 0 is a right choice for initial value of those three variables. int d = 0; int m = 0; int y = 0;
30th Nov 2017, 4:06 PM
Dev
Dev - avatar
+ 3
now it works, code edited
30th Nov 2017, 4:20 PM
Hemant Jaiswal
Hemant Jaiswal - avatar