Skip to the task
Layout
Back to classic view

You are looking at lesson 10. Your place is still lesson 5, task 1: Functions.

CHECKTask 15 of 17 · step 6: Drills: check yourself

Why doesn't it compile?

if (a == b) where a and b are Point. Why the error, and how do you fix it?

Stuck?

== isn't defined for structures. Compare the members: a.x == b.x && a.y == b.y.