QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#522296 | #6599. The Grand Tournament | ZhaoZiLong | Compile Error | / | / | C++20 | 4.8kb | 2024-08-16 21:01:59 | 2024-08-16 21:01:59 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
详细
answer.code: In member function ‘point point::rot(long double) const’: answer.code:32:79: error: expected ‘}’ before ‘;’ token 32 | return {(LD) (x * cos(t) - y * sin(t)), (LD) {x * sin(t) + y * cos(t)};} | ^ answer.code:32:16: note: to match this ‘{’ 32 | return {(LD) (x * cos(t) - y * sin(t)), (LD) {x * sin(t) + y * cos(t)};} | ^ answer.code: In function ‘bool point_on_line(const point&, const line&)’: answer.code:91:16: error: ‘det’ was not declared in this scope; did you mean ‘dot’? 91 | return sgn(det(a - l.s, l.t - l.s)) == 0; | ^~~ | dot answer.code: In function ‘bool two_side(const point&, const point&, const line&)’: answer.code:99:16: error: ‘det’ was not declared in this scope; did you mean ‘dot’? 99 | return sgn(det(a - c.s, c.t - c.s)) * sgn(det(b - c.s, c.t - c.s)) < 0; | ^~~ | dot answer.code: In function ‘int onRight(const line&, const point&)’: answer.code:111:33: error: ‘det’ was not declared in this scope; did you mean ‘dot’? 111 | int onRight(cl a, cp b) {return det(a.t - a.s, b - a.s) <= -eps;} | ^~~ | dot answer.code: In lambda function: answer.code:117:17: error: there are no arguments to ‘det’ that depend on a template parameter, so a declaration of ‘det’ must be available [-fpermissive] 117 | if (sgn(det(u, v))) return sgn(det(u, v)) > 0; | ^~~ answer.code:117:17: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated) answer.code:117:40: error: there are no arguments to ‘det’ that depend on a template parameter, so a declaration of ‘det’ must be available [-fpermissive] 117 | if (sgn(det(u, v))) return sgn(det(u, v)) > 0; | ^~~ answer.code: In function ‘std::vector<point> my_half_plane(std::vector<line>)’: answer.code:128:17: error: ‘det’ was not declared in this scope; did you mean ‘dot’? 128 | if (sgn(det(a[i].t - a[i].s, a[i - 1].t - a[i - 1].s)) == 0) continue; | ^~~ | dot answer.code:132:22: error: ‘det’ was not declared in this scope; did you mean ‘dot’? 132 | if (std::abs(det(que[right].t - que[right].s, que[right - 1].t - que[right - 1].s)) <= eps) { | ^~~ | dot answer.code:137:39: error: ‘line_intersect’ was not declared in this scope 137 | if (left < right) p1[right] = line_intersect(que[right], que[right - 1]); | ^~~~~~~~~~~~~~ answer.code:141:16: error: ‘line_intersect’ was not declared in this scope 141 | p1[left] = line_intersect(que[left], que[right]); | ^~~~~~~~~~~~~~ answer.code: In function ‘long double get_are(std::vector<point>)’: answer.code:150:40: error: ‘det’ was not declared in this scope; did you mean ‘dot’? 150 | for (int i = 0; i < n; i++) ans += det(pu[i], pu[(i + 1) % n]); | ^~~ | dot answer.code: In function ‘void slove()’: answer.code:169:13: error: ‘det’ was not declared in this scope; did you mean ‘dot’? 169 | if (sgn(det(l1.t - l1.s, l2.t - l2.s)) == 0) { | ^~~ | dot answer.code: In instantiation of ‘my_half_plane(std::vector<line>)::<lambda(auto:54, auto:55)> [with auto:54 = line; auto:55 = line]’: /usr/include/c++/13/bits/predefined_ops.h:158:30: required from ‘constexpr bool __gnu_cxx::__ops::_Iter_comp_iter<_Compare>::operator()(_Iterator1, _Iterator2) [with _Iterator1 = __gnu_cxx::__normal_iterator<line*, std::vector<line> >; _Iterator2 = __gnu_cxx::__normal_iterator<line*, std::vector<line> >; _Compare = my_half_plane(std::vector<line>)::<lambda(auto:54, auto:55)>]’ /usr/include/c++/13/bits/stl_algo.h:1819:14: required from ‘constexpr void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<line*, vector<line> >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<my_half_plane(std::vector<line>)::<lambda(auto:54, auto:55)> >]’ /usr/include/c++/13/bits/stl_algo.h:1859:25: required from ‘constexpr void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<line*, vector<line> >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<my_half_plane(std::vector<line>)::<lambda(auto:54, auto:55)> >]’ /usr/include/c++/13/bits/stl_algo.h:1950:31: required from ‘constexpr void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<line*, vecto...