| ### Compilation failed: |
| |
| error: 1: operator '~' is not allowed |
| int bit_not(int x) { return ~x; } |
| ^^ |
| error: 3: operator '%' is not allowed |
| int remainder(int x) { return x % 2; } |
| ^^^^^^ |
| error: 4: operator '%=' is not allowed |
| int remainder_eq(int x) { return x %= 2;} |
| ^^^^^^ |
| error: 6: operator '<<' is not allowed |
| int shl (int x) { return x << 1; } |
| ^^^^^^^ |
| error: 7: operator '<<=' is not allowed |
| int shl_eq(int x) { return x <<= 1; } |
| ^^^^^^^ |
| error: 8: operator '>>' is not allowed |
| int shr (int x) { return x >> 1; } |
| ^^^^^^^ |
| error: 9: operator '>>=' is not allowed |
| int shr_eq(int x) { return x >>= 1; } |
| ^^^^^^^ |
| error: 11: operator '&' is not allowed |
| int bit_and (int x) { return x & 1; } |
| ^^^^^^ |
| error: 12: operator '&=' is not allowed |
| int bit_and_eq(int x) { return x &= 1; } |
| ^^^^^^ |
| error: 13: operator '|' is not allowed |
| int bit_or (int x) { return x | 1; } |
| ^^^^^^ |
| error: 14: operator '|=' is not allowed |
| int bit_or_eq (int x) { return x |= 1; } |
| ^^^^^^ |
| error: 15: operator '^' is not allowed |
| int bit_xor (int x) { return x ^ 1; } |
| ^^^^^^ |
| error: 16: operator '^=' is not allowed |
| int bit_xor_eq(int x) { return x ^= 1; } |
| ^^^^^^ |
| 13 errors |