Main.cpp: In function 'long long int calcTime(Board, Board)':
Main.cpp:60:48: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses]
60 | if(a.x > b.x || a.y != b.y || (a.x + b.x & 1)) return -1;
| ~~~~^~~~~
Main.cpp:61:25: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
61 | return (a.x + b.x >> 1) - a.x;
| ~~~~^~~~~
Main.cpp:84:21: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses]
84 | if((a.y + b.y & 1) || a.x != b.x || a.y > b.y) return -1;
| ~~~~^~~~~
Main.cpp:85:25: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
85 | return (a.y + b.y >> 1) - a.y;
| ~~~~^~~~~
Main.cpp: In function 'std::pair<long long int, long long int> midPos(Event)':
Main.cpp:95:36: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
95 | return make_pair(cur.x + other.x >> 1, cur.y);
| ~~~~~~^~~~~~~~~
Main.cpp:115:43: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
115 | return make_pair(cur.x, cur.y + other.y >> 1);
| ~~~~~~^~~~~~~~~
Main.cpp: In function 'void solve()':
Main.cpp:142:31: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
142 | if(isAlive[sukien.fr] && isAlive[sukien.to] || (sukien.at == last.at && midPos(last) == midPos(sukien) )) {
| ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
Main.cpp: In function 'long long int enc(char)':
Main.cpp:54:1: warning: control reaches end of non-void function [-Wreturn-type]
54 | }
| ^
Main.cpp: In function 'long long int calcTime(Board, Board)':
Main.cpp:88:1: warning: control reaches end of non-void function [-Wreturn-type]
88 | }
| ^
Main.cpp: In function 'std::pair<long long int, long long int> midPos(Event)':
Main.cpp:118:1: warning: control reaches end of non-void function [-Wreturn-type]
118 | }
| ^
Main.cpp: In function 'int main()':
Main.cpp:155:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
155 | freopen(task".inp", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
Main.cpp:156:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
156 | freopen(task".out", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
Main.cpp:159:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
159 | freopen("task.inp", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
Main.cpp:160:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
160 | freopen("task.out", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~