communication.cpp: In function 'void encode(int, int)':
communication.cpp:7:24: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
7 | send(((1<<j)&X > 0));
| ~~^~~
communication.cpp:8:24: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
8 | send(((1<<j)&X > 0));
| ~~^~~
communication.cpp: In function 'std::pair<int, int> decode(int)':
communication.cpp:15:39: error: invalid conversion from 'int (*)()' to 'int' [-fpermissive]
15 | for(int j = 0; j < 4; ++j) x[j] = receive;
| ^~~~~~~
| |
| int (*)()