1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | int main() { int i = 10; int j = 10; if(i = 5) { j = 100; } else { j = 200; } return 0; } |
aW50IG1haW4oKQp7IAogICAgaW50IGkgPSAxMDsKICAgIGludCBqID0gMTA7CiAgICBpZihpID0gNSkKICAgIHsKICAgICAgICBqID0gMTAwOwogICAgfQogICAgZWxzZQogICAgewogICAgICAgIGogPSAyMDA7CiAgICB9CiAgICAgICAgCiAgICByZXR1cm4gMDsKfQ==
cc1: warnings being treated as errors prog.c: In function ‘main’: prog.c:5: error: suggest parentheses around assignment used as truth value
-
result: Compilation error (maybe you wish to see an example for C99 strict)


