1int main() {2 auto r = 0;3 for (auto i = 1; i <= 10; i++) {4 r += i & 1 + (i - 1) & 1 - 1;5 }6 7 return r;8}9