Problem | lightningrod |
---|---|
User | Kiameimon |
Submission Time | 2024-01-04 14:21:14 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lightningrod.cpp:11:17: error: ‘Point’ does not name a type
11 | int cross(const Point &O, const Point &A, const Point &B)
| ^~~~~
lightningrod.cpp:11:33: error: ‘Point’ does not name a type
11 | int cross(const Point &O, const Point &A, const Point &B)
| ^~~~~
lightningrod.cpp:11:49: error: ‘Point’ does not name a type
11 | int cross(const Point &O, const Point &A, const Point &B)
| ^~~~~
lightningrod.cpp: In function ‘long long int cross(const int&, const int&, const int&)’:
lightningrod.cpp:13:12: error: request for member ‘x’ in ‘A’, which is of non-class type ‘const int’
13 | return (A.x - O.x) * (B.y - O.y) - (A.y - O.y) * (B.x - O.x);
| ^
lightningrod.cpp:13:18: error: request for member ‘x’ in ‘O’, which is of non-class type ‘const int’
13 | return (A.x - O.x) * (B.y - O.y) - (A.y - O.y) * (