When an assertion fails, is it considered as a runtime error or a wrong answer?

I wanted to know about how Codechef handles failed assertions. Or does it simply ignore them using the “-O” switch?

You can do your own test using some problem in practice section.

I didn’t try it yet, but in FAQ it’s written, that failed assertions throws SIGABRT (in C++).

In Java assert statements are probably ingored, because there is no -ea defined (at least I do not know about it).

1 Like
//