0_0_20524588_7694.cpp: In function 'bool check2(node, node)':
0_0_20524588_7694.cpp:34:20: error: request for member 'x' in 'a.node::i', which is of non-class type 'int'
int x1=min(a.i.x,a.j.x);
^
0_0_20524588_7694.cpp:34:26: error: request for member 'x' in 'a.node::j', which is of non-class type 'int'
int x1=min(a.i.x,a.j.x);
^
0_0_20524588_7694.cpp:35:20: error: request for member 'x' in 'a.node::i', which is of non-class type 'int'
int x2=max(a.i.x,a.j.x);
^
0_0_20524588_7694.cpp:35:26: error: request for member 'x' in 'a.node::j', which is of non-class type 'int'
int x2=max(a.i.x,a.j.x);
^
0_0_20524588_7694.cpp:36:20: error: request for member 'y' in 'a.node::i', which is of non-class type 'int'
int y1=min(a.i.y,a.j.y);
^
0_0_20524588_7694.cpp:36:26: error: request for member 'y' in 'a.node::j', which is of non-class type 'int'
int y1=min(a.i.y,a.j.y);
^
0_0_20524588_7694.cpp:37:20: error: request for member 'y' in 'a.node::i', which is of non-class type 'int'
int y2=max(a.i.y,a.j.y);
^
0_0_20524588_7694.cpp:37:26: error: request for member 'y' in 'a.node::j', which is of non-class type 'int'
int y2=max(a.i.y,a.j.y);
^
0_0_20524588_7694.cpp:38:12: error: request for member 'x' in 'b.node::i', which is of non-class type 'int'
if(b.i.x>=x1&&b.i.x<=x2||b.j.x>=x1&&b.j.x<=x2||b.i.y>=y1&&b.i.y<=y2||b.j.y>=y1&&b.j.y<=y2)
^
0_0_20524588_7694.cpp:38:23: error: request for member 'x' in 'b.node::i', which is of non-class type 'int'
if(b.i.x>=x1&&b.i.x<=x2||b.j.x>=x1&&b.j.x<=x2||b.i.y>=y1&&b.i.y<=y2||b.j.y>=y1&&b.j.y<=y2)
^
0_0_20524588_7694.cpp:38:34: error: request for member 'x' in 'b.node::j', which is of non-class type 'int'
if(b.i.x>=x1&&b.i.x<=x2||b.j.x>=x1&&b.j.x<=x2||b.i.y>=y1&&b.i.y<=y2||b.j.y>=y1&&b.j.y<=y2)
^
0_0_20524588_7694.cpp:38:45: error: request for member 'x' in 'b.node::j', which is of non-class type 'int'
if(b.i.x>=x1&&b.i.x<=x2||b.j.x>=x1&&b.j.x<=x2||b.i.y>=y1&&b.i.y<=y2||b.j.y>=y1&&b.j.y<=y2)
^
0_0_20524588_7694.cpp:38:56: error: request for member 'y' in 'b.node::i', which is of non-class type 'int'
if(b.i.x>=x1&&b.i.x<=x2||b.j.x>=x1&&b.j.x<=x2||b.i.y>=y1&&b.i.y<=y2||b.j.y>=y1&&b.j.y<=y2)
^
0_0_20524588_7694.cpp:38:67: error: request for member 'y' in 'b.node::i', which is of non-class type 'int'
if(b.i.x>=x1&&b.i.x<=x2||b.j.x>=x1&&b.j.x<=x2||b.i.y>=y1&&b.i.y<=y2||b.j.y>=y1&&b.j.y<=y2)
^
0_0_20524588_7694.cpp:38:78: error: request for member 'y' in 'b.node::j', which is of non-class type 'int'
if(b.i.x>=x1&&b.i.x<=x2||b.j.x>=x1&&b.j.x<=x2||b.i.y>=y1&&b.i.y<=y2||b.j.y>=y1&&b.j.y<=y2)
^
0_0_20524588_7694.cpp:38:89: error: request for member 'y' in 'b.node::j', which is of non-class type 'int'
if(b.i.x>=x1&&b.i.x<=x2||b.j.x>=x1&&b.j.x<=x2||b.i.y>=y1&&b.i.y<=y2||b.j.y>=y1&&b.j.y<=y2)
^
0_0_20524588_7694.cpp: In function 'int main()':
0_0_20524588_7694.cpp:62:35: error: could not convert 'i' from 'int' to 'dian'
x[len++].l=cal(i,j);
^
0_0_20524588_7694.cpp:74:24: error: 'a' was not declared in this scope
if(a[i].x==a[j].x)
^
0_0_20524588_7694.cpp:82:27: error: 'struct node' has no member named 's'
q[la].s=t*sqrt(x[i].l);
^
0_0_20524588_7694.cpp:99:26: error: no matching function for call to 'max()'
maxx=max()
^
0_0_20524588_7694.cpp:99:26: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:61:0,
from 0_0_20524588_7694.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:217:5: note: template<class _Tp> const _Tp& std::max(const _Tp&, const _Tp&)
max(const _Tp& __a, const _Tp& __b)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:217:5: note: template argument deduction/substitution failed:
0_0_20524588_7694.cpp:99:26: note: candidate expects 2 arguments, 0 provided
maxx=max()
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:61:0,
from 0_0_20524588_7694.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:261:5: note: template<class _Tp, class _Compare> const _Tp& std::max(const _Tp&, const _Tp&, _Compare)
max(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:261:5: note: template argument deduction/substitution failed:
0_0_20524588_7694.cpp:99:26: note: candidate expects 3 arguments, 0 provided
maxx=max()
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from 0_0_20524588_7694.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3449:5: note: template<class _Tp> _Tp std::max(std::initializer_list<_Tp>)
max(initializer_list<_Tp> __l)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3449:5: note: template argument deduction/substitution failed:
0_0_20524588_7694.cpp:99:26: note: candidate expects 1 argument, 0 provided
maxx=max()
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from 0_0_20524588_7694.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3454:5: note: template<class _Tp, class _Compare> _Tp std::max(std::initializer_list<_Tp>, _Compare)
max(initializer_list<_Tp> __l, _Compare __comp)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3454:5: note: template argument deduction/substitution failed:
0_0_20524588_7694.cpp:99:26: note: candidate expects 2 arguments, 0 provided
maxx=max()
^
|