what is the problem in the code?
Odd even challenge
@Raghavsingla522
Comment line 6 to 10 and write these two lines just after line 12
int osum=0,esum=0,carno;
cin>>carno;
done but it is still showing wrong answer.
@Raghavsingla522
initialise osum=0 and esum=0; inside loop. Check this code, i had made change in your code
ya code is running now but can you what change your modification is doing ?
@Raghavsingla522
Actually you are not initialsing osum and esum with 0 for each testcase so for 2nd testcase onward osum and esum already contain some value which result in wrong total odd and even sum