aliens.cpp: In function 'bool inpoot(long long int, long long int)':
aliens.cpp:18:22: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
18 | printf("examine %d %d\n",x,y);
| ~^ ~
| | |
| int long long int
| %lld
aliens.cpp:18:25: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=]
18 | printf("examine %d %d\n",x,y);
| ~^ ~
| | |
| int long long int
| %lld
aliens.cpp: In function 'int32_t main()':
aliens.cpp:41:16: error: expected primary-expression before ')' token
41 | while(true)){
| ^
aliens.cpp:153:23: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
153 | printf("solution %d %d\n",X,Y);
| ~^ ~
| | |
| int long long int
| %lld
aliens.cpp:153:26: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=]
153 | printf("solution %d %d\n",X,Y);
| ~^ ~
| | |
| int long long int
| %lld
aliens.cpp:30:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
30 | scanf(" %lld",&N);
| ~~~~~^~~~~~~~~~~~
aliens.cpp:31:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
31 | scanf(" %lld",&X);
| ~~~~~^~~~~~~~~~~~
aliens.cpp:32:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
32 | scanf(" %lld",&Y);
| ~~~~~^~~~~~~~~~~~