0

[SOLVED]What is the error in this code ?

https://code.sololearn.com/cf56q7gkFwle/?ref=app This code is giving the desired result but generating a error at end . Why is that error generated ? [SOLVED]

22nd Jun 2021, 2:27 PM
Vijay Gunwant
Vijay Gunwant - avatar
3 Answers
+ 5
Vijay Gunwant Change int a = 0 to long unsigned int a = 0 https://www.educba.com/unsigned-int-in-c/
22nd Jun 2021, 2:29 PM
AÍąJ
AÍąJ - avatar
+ 5
not an error, a warning, because you compare two different number types (a is int and s.length() is long unsigned int)
22nd Jun 2021, 2:31 PM
visph
visph - avatar
22nd Jun 2021, 2:34 PM
Vijay Gunwant
Vijay Gunwant - avatar