0_0_15484178_13333.cpp: In function 'int main()':
0_0_15484178_13333.cpp:115:43: error: 'eps' was not declared in this scope
if((a1[i]-a2[i]).cross(a1[j]-a2[j]) < eps)//TODO eps large enough?
^
0_0_15484178_13333.cpp:119:38: error: 'cross' was not declared in this scope
R S1 = cross(a1[i], a2[i], a1[j]);
^
0_0_15484178_13333.cpp:121:26: error: no match for 'operator*' (operand types are 'R2' and 'R {aka double}')
inter[i][j] = (a1[j]*S2 - a2[j]*S1) / (S2-S1);//TODO verify
^
0_0_15484178_13333.cpp:121:37: error: no match for 'operator*' (operand types are 'R2' and 'R {aka double}')
inter[i][j] = (a1[j]*S2 - a2[j]*S1) / (S2-S1);//TODO verify
^
0_0_15484178_13333.cpp:134:17: error: no match for 'operator=' (operand types are 'Point' and 'R2')
q2[q2n++] = inter[ii][jj];
^
0_0_15484178_13333.cpp:134:17: note: candidates are:
0_0_15484178_13333.cpp:44:8: note: Point& Point::operator=(const Point&)
struct Point{
^
0_0_15484178_13333.cpp:44:8: note: no known conversion for argument 1 from 'R2' to 'const Point&'
0_0_15484178_13333.cpp:44:8: note: Point& Point::operator=(Point&&)
0_0_15484178_13333.cpp:44:8: note: no known conversion for argument 1 from 'R2' to 'Point&&'
0_0_15484178_13333.cpp:175:24: error: invalid types 'int[int]' for array subscript
printf("%d", c[i][j]);
^
|