lambda breaks the for loop range yet somehow gets AC

Revision en3, by last_hour, 2024-09-13 17:33:46

Heyo Codefoworcers! As I was practicing some of the problems, I came across the problem 1553C - Penalty and while solving this I literally blown up CF OJ and my Laptop!!!

The fact is my submission 280945613 gets AC while getting {warning: control reaches end of non-void function [-Wreturn-type]} this on my laptop and also this is not the end!

**The code breaks the range i from 0 to <n = 10 and proceeds to i=10 ...you can check it out I ran this code on ideone.com it just works perfectly fine there as well, I literally don't have any idea about this. Even I changed compiler it still gets an AC. Drop your thoughts on it!

Tags lambda expressions

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English last_hour 2024-09-13 17:33:46 1 Tiny change: 'from 0 to n = 10 and' -> 'from 0 to <n = 10 and'
en2 English last_hour 2024-09-13 17:32:28 124
en1 English last_hour 2024-09-13 16:58:01 609 Initial revision (published)