Equality operators don't work in "for" loops

the differences between Arduino and pure C++

There really aren't any. All the Arduino stuff is just C++ libraries provided to make life easier - your code is compiled behind the scenes by the gnu C++ compiler.