Problem | lightningrod |
---|---|
User | Kiameimon |
Submission Time | 2024-01-04 14:21:31 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lightningrod.cpp: In function ‘long long int cross(const pt&, const pt&, const pt&)’:
lightningrod.cpp:12:12: error: ‘const pt’ {aka ‘const struct std::complex<long long int>’} has no member named ‘x’
12 | return (A.x - O.x) * (B.y - O.y) - (A.y - O.y) * (B.x - O.x);
| ^
lightningrod.cpp:12:18: error: ‘const pt’ {aka ‘const struct std::complex<long long int>’} has no member named ‘x’
12 | return (A.x - O.x) * (B.y - O.y) - (A.y - O.y) * (B.x - O.x);
| ^
lightningrod.cpp:12:26: error: ‘const pt’ {aka ‘const struct std::complex<long long int>’} has no member named ‘y’
12 | return (A.x - O.x) * (B.y - O.y) - (A.y - O.y) * (B.x - O.x);
| ^
lightningrod.cpp:12:32: error: ‘const pt’ {aka ‘const struct std::complex<long long int>’} has no member named ‘y’
12 | return (A.x - O.x) * (B.y - O.y) - (A.y - O.y) * (B.x - O.x);
|