snake_escaping.cpp: In function 'void rec(int, int, int)':
snake_escaping.cpp:42:27: warning: left operand of comma operator has no effect [-Wunused-value]
rec(i + 1, x + (1 << (n - i), u));
~~^~~~~~~~~~
snake_escaping.cpp:42:41: error: too few arguments to function 'void rec(int, int, int)'
rec(i + 1, x + (1 << (n - i), u));
^
snake_escaping.cpp:32:6: note: declared here
void rec(int i, int x, int u)
^~~
snake_escaping.cpp:46:27: warning: left operand of comma operator has no effect [-Wunused-value]
rec(i + 1, x + (1 << (n - i), u));
~~^~~~~~~~~~
snake_escaping.cpp:46:41: error: too few arguments to function 'void rec(int, int, int)'
rec(i + 1, x + (1 << (n - i), u));
^
snake_escaping.cpp:32:6: note: declared here
void rec(int i, int x, int u)
^~~
snake_escaping.cpp: In function 'int main()':
snake_escaping.cpp:52:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &qq);
~~~~~^~~~~~~~~~~~~~~~~
snake_escaping.cpp:53:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf(" %s", a);
~~~~~^~~~~~~~~~
snake_escaping.cpp:59:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf(" %s", (b[i].u + 1));
~~~~~^~~~~~~~~~~~~~~~~~~~~