aliens.cpp:22:7: error: 'll y0' redeclared as different kind of symbol
ll x0,y0;
^~
In file included from /usr/include/features.h:367:0,
from /usr/include/x86_64-linux-gnu/c++/7/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/7/bits/c++config.h:533,
from /usr/include/c++/7/cassert:43,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:33,
from aliens.cpp:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:250:1: note: previous declaration 'double y0(double)'
__MATHCALL (y0,, (_Mdouble_));
^
aliens.cpp: In function 'bool examine(ll, ll)':
aliens.cpp:32:18: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[10]' [-Wformat=]
scanf("%s",&word);
~~~~~^
aliens.cpp: In function 'int main()':
aliens.cpp:45:27: warning: format '%lld' expects argument of type 'long long int*', but argument 3 has type 'double (*)(double) throw ()' [-Wformat=]
scanf("%lld %lld",&x0,&y0);
~~~^
aliens.cpp:54:16: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if (!ok(x0,y0+len)||!examine(x0,y0+len)) {
~~^~~~
aliens.cpp:54:16: error: invalid conversion from 'double (*)(double) throw ()' to 'll {aka long long int}' [-fpermissive]
aliens.cpp:26:6: note: initializing argument 2 of 'bool ok(ll, ll)'
bool ok(ll x,ll y) {
^~
aliens.cpp:54:37: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if (!ok(x0,y0+len)||!examine(x0,y0+len)) {
~~^~~~
aliens.cpp:54:37: error: invalid conversion from 'double (*)(double) throw ()' to 'll {aka long long int}' [-fpermissive]
aliens.cpp:29:6: note: initializing argument 2 of 'bool examine(ll, ll)'
bool examine(ll x,ll y) {
^~~~~~~
aliens.cpp:61:18: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if (!ok(x0,y0+mid)||!examine(x0,y0+mid)) {
~~^~~~
aliens.cpp:61:18: error: invalid conversion from 'double (*)(double) throw ()' to 'll {aka long long int}' [-fpermissive]
aliens.cpp:26:6: note: initializing argument 2 of 'bool ok(ll, ll)'
bool ok(ll x,ll y) {
^~
aliens.cpp:61:39: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if (!ok(x0,y0+mid)||!examine(x0,y0+mid)) {
~~^~~~
aliens.cpp:61:39: error: invalid conversion from 'double (*)(double) throw ()' to 'll {aka long long int}' [-fpermissive]
aliens.cpp:29:6: note: initializing argument 2 of 'bool examine(ll, ll)'
bool examine(ll x,ll y) {
^~~~~~~
aliens.cpp:68:11: warning: pointer to a function used in arithmetic [-Wpointer-arith]
y[1]=y0+ans;
~~^~~~
aliens.cpp:68:11: error: invalid conversion from 'double (*)(double) throw ()' to 'll {aka long long int}' [-fpermissive]
aliens.cpp:75:16: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if (!ok(x0,y0-len)||!examine(x0,y0-len)) {
~~^~~~
aliens.cpp:75:16: error: invalid conversion from 'double (*)(double) throw ()' to 'll {aka long long int}' [-fpermissive]
aliens.cpp:26:6: note: initializing argument 2 of 'bool ok(ll, ll)'
bool ok(ll x,ll y) {
^~
aliens.cpp:75:37: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if (!ok(x0,y0-len)||!examine(x0,y0-len)) {
~~^~~~
aliens.cpp:75:37: error: invalid conversion from 'double (*)(double) throw ()' to 'll {aka long long int}' [-fpermissive]
aliens.cpp:29:6: note: initializing argument 2 of 'bool examine(ll, ll)'
bool examine(ll x,ll y) {
^~~~~~~
aliens.cpp:82:18: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if (!ok(x0,y0-mid)||!examine(x0,y0-mid)) {
~~^~~~
aliens.cpp:82:18: error: invalid conversion from 'double (*)(double) throw ()' to 'll {aka long long int}' [-fpermissive]
aliens.cpp:26:6: note: initializing argument 2 of 'bool ok(ll, ll)'
bool ok(ll x,ll y) {
^~
aliens.cpp:82:39: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if (!ok(x0,y0-mid)||!examine(x0,y0-mid)) {
~~^~~~
aliens.cpp:82:39: error: invalid conversion from 'double (*)(double) throw ()' to 'll {aka long long int}' [-fpermissive]
aliens.cpp:29:6: note: initializing argument 2 of 'bool examine(ll, ll)'
bool examine(ll x,ll y) {
^~~~~~~
aliens.cpp:89:11: warning: pointer to a function used in arithmetic [-Wpointer-arith]
y[0]=y0-ans;
~~^~~~
aliens.cpp:89:11: error: invalid conversion from 'double (*)(double) throw ()' to 'll {aka long long int}' [-fpermissive]
aliens.cpp:96:20: error: invalid conversion from 'double (*)(double) throw ()' to 'll {aka long long int}' [-fpermissive]
if (!ok(x0+len,y0)||!examine(x0+len,y0)) {
^
aliens.cpp:26:6: note: initializing argument 2 of 'bool ok(ll, ll)'
bool ok(ll x,ll y) {
^~
aliens.cpp:96:41: error: invalid conversion from 'double (*)(double) throw ()' to 'll {aka long long int}' [-fpermissive]
if (!ok(x0+len,y0)||!examine(x0+len,y0)) {
^
aliens.cpp:29:6: note: initializing argument 2 of 'bool examine(ll, ll)'
bool examine(ll x,ll y) {
^~~~~~~
aliens.cpp:103:22: error: invalid conversion from 'double (*)(double) throw ()' to 'll {aka long long int}' [-fpermissive]
if (!ok(x0+mid,y0)||!examine(x0+mid,y0)) {
^
aliens.cpp:26:6: note: initializing argument 2 of 'bool ok(ll, ll)'
bool ok(ll x,ll y) {
^~
aliens.cpp:103:43: error: invalid conversion from 'double (*)(double) throw ()' to 'll {aka long long int}' [-fpermissive]
if (!ok(x0+mid,y0)||!examine(x0+mid,y0)) {
^
aliens.cpp:29:6: note: initializing argument 2 of 'bool examine(ll, ll)'
bool examine(ll x,ll y) {
^~~~~~~
aliens.cpp:116:24: error: assignment of function 'double y0(double)'
x0=x[0]+m/2,y0=y[0]+m/2;
^
aliens.cpp:116:24: error: cannot convert 'll {aka long long int}' to 'double(double) throw ()' in assignment
aliens.cpp:130:16: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if (!ok(x0,y0+2*m*mid)||!examine(x0,y0+2*m*mid)) {
~~^~~~~~~~
aliens.cpp:130:16: error: invalid conversion from 'double (*)(double) throw ()' to 'll {aka long long int}' [-fpermissive]
aliens.cpp:26:6: note: initializing argument 2 of 'bool ok(ll, ll)'
bool ok(ll x,ll y) {
^~
aliens.cpp:130:41: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if (!ok(x0,y0+2*m*mid)||!examine(x0,y0+2*m*mid)) {
~~^~~~~~~~
aliens.cpp:130:41: error: invalid conversion from 'double (*)(double) throw ()' to 'll {aka long long int}' [-fpermissive]
aliens.cpp:29:6: note: initializing argument 2 of 'bool examine(ll, ll)'
bool examine(ll x,ll y) {
^~~~~~~
aliens.cpp:136:10: warning: pointer to a function used in arithmetic [-Wpointer-arith]
y[1]=y0+2*m*ans;
~~^~~~~~~~
aliens.cpp:136:10: error: invalid conversion from 'double (*)(double) throw ()' to 'll {aka long long int}' [-fpermissive]
aliens.cpp:143:16: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if (!ok(x0,y0-2*m*mid)||!examine(x0,y0-2*m*mid)) {
~~^~~~~~~~
aliens.cpp:143:16: error: invalid conversion from 'double (*)(double) throw ()' to 'll {aka long long int}' [-fpermissive]
aliens.cpp:26:6: note: initializing argument 2 of 'bool ok(ll, ll)'
bool ok(ll x,ll y) {
^~
aliens.cpp:143:41: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if (!ok(x0,y0-2*m*mid)||!examine(x0,y0-2*m*mid)) {
~~^~~~~~~~
aliens.cpp:143:41: error: invalid conversion from 'double (*)(double) throw ()' to 'll {aka long long int}' [-fpermissive]
aliens.cpp:29:6: note: initializing argument 2 of 'bool examine(ll, ll)'
bool examine(ll x,ll y) {
^~~~~~~
aliens.cpp:149:10: warning: pointer to a function used in arithmetic [-Wpointer-arith]
y[0]=y0-2*m*ans;
~~^~~~~~~~
aliens.cpp:149:10: error: invalid conversion from 'double (*)(double) throw ()' to 'll {aka long long int}' [-fpermissive]
aliens.cpp:156:24: error: invalid conversion from 'double (*)(double) throw ()' to 'll {aka long long int}' [-fpermissive]
if (!ok(x0+2*m*mid,y0)||!examine(x0+2*m*mid,y0)) {
^
aliens.cpp:26:6: note: initializing argument 2 of 'bool ok(ll, ll)'
bool ok(ll x,ll y) {
^~
aliens.cpp:156:49: error: invalid conversion from 'double (*)(double) throw ()' to 'll {aka long long int}' [-fpermissive]
if (!ok(x0+2*m*mid,y0)||!examine(x0+2*m*mid,y0)) {
^
aliens.cpp:29:6: note: initializing argument 2 of 'bool examine(ll, ll)'
bool examine(ll x,ll y) {
^~~~~~~
aliens.cpp:169:24: error: invalid conversion from 'double (*)(double) throw ()' to 'll {aka long long int}' [-fpermissive]
if (!ok(x0-2*m*mid,y0)||!examine(x0-2*m*mid,y0)) {
^
aliens.cpp:26:6: note: initializing argument 2 of 'bool ok(ll, ll)'
bool ok(ll x,ll y) {
^~
aliens.cpp:169:49: error: invalid conversion from 'double (*)(double) throw ()' to 'll {aka long long int}' [-fpermissive]
if (!ok(x0-2*m*mid,y0)||!examine(x0-2*m*mid,y0)) {
^
aliens.cpp:29:6: note: initializing argument 2 of 'bool examine(ll, ll)'
bool examine(ll x,ll y) {
^~~~~~~
aliens.cpp:178:13: error: assignment of function 'double y0(double)'
y0=y[0]+y[1],y0/=2;
^
aliens.cpp:178:13: error: cannot convert 'll {aka long long int}' to 'double(double) throw ()' in assignment
aliens.cpp:178:17: error: invalid operands of types 'double(double) throw ()' and 'int' to binary 'operator/'
y0=y[0]+y[1],y0/=2;
~~^~~
aliens.cpp:178:19: error: in evaluation of 'operator/=(double(double) throw (), int)'
y0=y[0]+y[1],y0/=2;
^
aliens.cpp:179:17: warning: the address of 'double y0(double)' will never be NULL [-Waddress]
cout<<x0<<" "<<y0<<endl;
^~
aliens.cpp: In function 'bool examine(ll, ll)':
aliens.cpp:32:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%s",&word);
~~~~~^~~~~~~~~~~~
aliens.cpp: In function 'int main()':
aliens.cpp:44:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld",&n);
~~~~~^~~~~~~~~~~
aliens.cpp:45:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld %lld",&x0,&y0);
~~~~~^~~~~~~~~~~~~~~~~~~~~