aliens.cpp: In function 'bool inpoot(long long int, long long int)':
aliens.cpp:15:22: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
15 | printf("examine %d %d\n",x,y);
| ~^ ~
| | |
| int long long int
| %lld
aliens.cpp:15:25: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=]
15 | printf("examine %d %d\n",x,y);
| ~^ ~
| | |
| int long long int
| %lld
aliens.cpp: In function 'int main()':
aliens.cpp:33:17: error: too few arguments to function 'bool inpoot(long long int, long long int)'
33 | while(inpoot(s + X - 1) || inpoot(X - s + 1)) s *= 2;
| ~~~~~~^~~~~~~~~~~
aliens.cpp:12:6: note: declared here
12 | bool inpoot(long long int x, long long int y){
| ^~~~~~
aliens.cpp:33:38: error: too few arguments to function 'bool inpoot(long long int, long long int)'
33 | while(inpoot(s + X - 1) || inpoot(X - s + 1)) s *= 2;
| ~~~~~~^~~~~~~~~~~
aliens.cpp:12:6: note: declared here
12 | bool inpoot(long long int x, long long int y){
| ^~~~~~
aliens.cpp:39:21: error: too few arguments to function 'bool inpoot(long long int, long long int)'
39 | while(inpoot(lX - s + 1)) lX += - s + 1;
| ~~~~~~^~~~~~~~~~~~
aliens.cpp:12:6: note: declared here
12 | bool inpoot(long long int x, long long int y){
| ^~~~~~
aliens.cpp:40:21: error: too few arguments to function 'bool inpoot(long long int, long long int)'
40 | while(inpoot(rX + s - 1)) rX += s - 1;
| ~~~~~~^~~~~~~~~~~~
aliens.cpp:12:6: note: declared here
12 | bool inpoot(long long int x, long long int y){
| ^~~~~~
aliens.cpp:50:18: error: too few arguments to function 'bool inpoot(long long int, long long int)'
50 | if(inpoot(lX - ns)){
| ~~~~~~^~~~~~~~~
aliens.cpp:12:6: note: declared here
12 | bool inpoot(long long int x, long long int y){
| ^~~~~~
aliens.cpp:66:18: error: too few arguments to function 'bool inpoot(long long int, long long int)'
66 | if(inpoot(rX + ns)){
| ~~~~~~^~~~~~~~~
aliens.cpp:12:6: note: declared here
12 | bool inpoot(long long int x, long long int y){
| ^~~~~~
aliens.cpp:87:18: error: too few arguments to function 'bool inpoot(long long int, long long int)'
87 | if(inpoot(lY - ns)){
| ~~~~~~^~~~~~~~~
aliens.cpp:12:6: note: declared here
12 | bool inpoot(long long int x, long long int y){
| ^~~~~~
aliens.cpp:104:18: error: too few arguments to function 'bool inpoot(long long int, long long int)'
104 | if(inpoot(rY + ns)){
| ~~~~~~^~~~~~~~~
aliens.cpp:12:6: note: declared here
12 | bool inpoot(long long int x, long long int y){
| ^~~~~~
aliens.cpp:122:17: error: too few arguments to function 'bool inpoot(long long int, long long int)'
122 | while(inpoot(X - 2 * L * (1 + lcont) )) lcont++;
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
aliens.cpp:12:6: note: declared here
12 | bool inpoot(long long int x, long long int y){
| ^~~~~~
aliens.cpp:123:26: error: 'l' was not declared in this scope
123 | while(inpoot(X + 2 * l * (1 + rcount) )) rcount++;
| ^
aliens.cpp:123:35: error: 'rcount' was not declared in this scope; did you mean 'rcont'?
123 | while(inpoot(X + 2 * l * (1 + rcount) )) rcount++;
| ^~~~~~
| rcont
aliens.cpp:125:5: error: 'rcount' was not declared in this scope; did you mean 'rcont'?
125 | rcount -= lcount;
| ^~~~~~
| rcont
aliens.cpp:125:15: error: 'lcount' was not declared in this scope; did you mean 'lcont'?
125 | rcount -= lcount;
| ^~~~~~
| lcont
aliens.cpp:132:17: error: too few arguments to function 'bool inpoot(long long int, long long int)'
132 | while(inpoot(Y - 2 * L * (1 + lcont) )) lcont++;
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
aliens.cpp:12:6: note: declared here
12 | bool inpoot(long long int x, long long int y){
| ^~~~~~
aliens.cpp:133:26: error: 'l' was not declared in this scope
133 | while(inpoot(Y + 2 * l * (1 + rcount) )) rcount++;
| ^
aliens.cpp:137:14: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
137 | printf("%d %d\n",X,Y);
| ~^ ~
| | |
| int long long int
| %lld
aliens.cpp:137:17: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=]
137 | printf("%d %d\n",X,Y);
| ~^ ~
| | |
| int long long int
| %lld
aliens.cpp:27:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
27 | scanf(" %lld",&N);
| ~~~~~^~~~~~~~~~~~
aliens.cpp:28:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
28 | scanf(" %lld",&X);
| ~~~~~^~~~~~~~~~~~
aliens.cpp:29:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
29 | scanf(" %lld",&Y);
| ~~~~~^~~~~~~~~~~~