0_0_24289655_2591.cpp:19:16: error: 'const double acos' redeclared as different kind of symbol
#define PI acos(-1.0)
^
0_0_24289655_2591.cpp:95:14: note: in expansion of macro 'PI'
const double PI = acos(-1.0);
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:44:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_24289655_2591.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/math.h:145:18: note: previous declaration 'double acos(double)'
double __cdecl acos(double _X);
^
0_0_24289655_2591.cpp:96:8: error: redefinition of 'struct Point'
struct Point
^
0_0_24289655_2591.cpp:21:8: error: previous definition of 'struct Point'
struct Point
^
0_0_24289655_2591.cpp:99:9: error: invalid type in declaration before ',' token
}a[1100],c[1100],Q;
^
0_0_24289655_2591.cpp:99:9: error: conflicting declaration 'int a [1100]'
0_0_24289655_2591.cpp:24:2: note: previous declaration as 'Point a [1100]'
}a[1100];
^
0_0_24289655_2591.cpp: In function 'void fun1(int)':
0_0_24289655_2591.cpp:107:8: error: request for member 'x' in 'c[i]', which is of non-class type 'int'
c[i].x=a[i].x-Q.x;
^
0_0_24289655_2591.cpp:107:19: error: request for member 'x' in 'Q', which is of non-class type 'int'
c[i].x=a[i].x-Q.x;
^
0_0_24289655_2591.cpp:108:8: error: request for member 'y' in 'c[i]', which is of non-class type 'int'
c[i].y=a[i].y-Q.y;
^
0_0_24289655_2591.cpp:108:19: error: request for member 'y' in 'Q', which is of non-class type 'int'
c[i].y=a[i].y-Q.y;
^
0_0_24289655_2591.cpp: In function 'void fun2(int)':
0_0_24289655_2591.cpp:117:19: error: request for member 'y' in 'c[i]', which is of non-class type 'int'
b[i]=atan2(c[i].y,c[i].x);
^
0_0_24289655_2591.cpp:117:26: error: request for member 'x' in 'c[i]', which is of non-class type 'int'
b[i]=atan2(c[i].y,c[i].x);
^
0_0_24289655_2591.cpp: In function 'int main()':
0_0_24289655_2591.cpp:123:5: error: redefinition of 'int main()'
int main()
^
0_0_24289655_2591.cpp:46:5: note: 'int main()' previously defined here
int main()
^
0_0_24289655_2591.cpp:137:5: error: cannot convert 'Point' to 'int' in assignment
Q=a[i];
^
|