F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_39423367_16741.cpp:12:43: error: expected ')' before ';' token
   12 |         point operator - (const point &A) {
      |                          ~                ^
      |                                           )
0_0_39423367_16741.cpp:12:44: error: 'A' does not name a type
   12 |         point operator - (const point &A) {
      |                                            ^
0_0_39423367_16741.cpp:15:42: error: expected ')' before ';' token
   15 |         bool operator < (const point &A)const {
      |                         ~                ^
      |                                          )
0_0_39423367_16741.cpp:15:43: error: 'A' does not name a type
   15 |         bool operator < (const point &A)const {
      |                                           ^
0_0_39423367_16741.cpp:65:25: error: expected ')' before ';' token
   65 | bool cmp(const Line &u, const Line &v) {
      |         ~               ^
      |                         )
0_0_39423367_16741.cpp:65:26: error: 'u' does not name a type
   65 | bool cmp(const Line &u, const Line &v) {
      |                          ^
0_0_39423367_16741.cpp:65:45: error: 'v' does not name a type
   65 | bool cmp(const Line &u, const Line &v) {
      |                                             ^
0_0_39423367_16741.cpp: In function 'int main()':
0_0_39423367_16741.cpp:73:22: error: 'amp' was not declared in this scope; did you mean 'cmp'?
   73 |         scanf("%d", &T);
      |                      ^~~
      |                      cmp
0_0_39423367_16741.cpp:73:27: error: expected ';' before ')' token
   73 |         scanf("%d", &T);
      |                           ^
      |                           ;
0_0_39423367_16741.cpp:75:35: error: expected ';' before ')' token
   75 |                 scanf("%d", &n);
      |                                   ^
      |                                   ;
0_0_39423367_16741.cpp:77:75: error: expected ';' before ')' token
   77 |                         scanf("%lf%lf", &line[i].s.x, &line[i].s.y);
      |                                                                           ^
      |                                                                           ;
0_0_39423367_16741.cpp:78:75: error: expected ';' before ')' token
   78 |                         scanf("%lf%lf", &line[i].e.x, &line[i].e.y);
      |                                                                           ^
      |                                                                           ;
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_algobase.h:71,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/algorithm:60,
                 from .\stdc++.h:51:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/predefined_ops.h: In instantiation of 'constexpr bool __gnu_cxx::__ops::_Iter_comp_iter<_Compare>::operator()(_Iterator1, _Iterator2) [with _Iterator1 = Line*; _Iterator2 = Line*; _Compare = bool (*)(const Line&)]':
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_algo.h:1819:14:   required from 'constexpr void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = Line*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(const Line&)>]'
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_algo.h:1859:25:   required from 'constexpr void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = Line*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(const Line&)>]'
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_algo.h:1950:31:   required from 'constexpr void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = Line*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(const Line&)>]'
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_algo.h:4894:18:   required from 'constexpr void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = Line*; _Compare = bool (*)(const Line&)]'
0_0_39423367_16741.cpp:81:7:   required from here
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/predefined_ops.h:158:30: error: too many arguments to function
  158 |         { return bool(_M_comp(*__it1, *__it2)); }
      |                       ~~~~~~~^~~~~~~~~~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/predefined_ops.h: In instantiation of 'constexpr bool __gnu_cxx::__ops::_Val_comp_iter<_Compare>::operator()(_Value&, _Iterator) [with _Value = Line; _Iterator = Line*; _Compare = bool (*)(const Line&)]':
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_algo.h:1799:20:   required from 'constexpr void std::__unguarded_linear_insert(_RandomAccessIterator, _Compare) [with _RandomAccessIterator = Line*; _Compare = __gnu_cxx::__ops::_Val_comp_iter<bool (*)(const Line&)>]'
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_algo.h:1827:36:   required from 'constexpr void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = Line*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(const Line&)>]'
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_algo.h:1859:25:   required from 'constexpr void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = Line*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(const Line&)>]'
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_algo.h:1950:31:   required from 'constexpr void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = Line*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(const Line&)>]'
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_algo.h:4894:18:   required from 'constexpr void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = Line*; _Compare = bool (*)(const Line&)]'
0_0_39423367_16741.cpp:81:7:   required from here
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/predefined_ops.h:240:30: error: too many arguments to function
  240 |         { return bool(_M_comp(__val, *__it)); }
      |                       ~~~~~~~^~~~~~~~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/predefined_ops.h: In instantiation of 'constexpr bool __gnu_cxx::__ops::_Iter_comp_val<_Compare>::operator()(_Iterator, _Value&) [with _Iterator = Line*; _Value = Line; _Compare = bool (*)(const Line&)]':
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_heap.h:140:48:   required from 'constexpr void std::__push_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare&) [with _RandomAccessIterator = Line*; _Distance = long long int; _Tp = Line; _Compare = __gnu_cxx::__ops::_Iter_comp_val<bool (*)(const Line&)>]'
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_heap.h:247:23:   required from 'constexpr void std::__adjust_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = Line*; _Distance = long long int; _Tp = Line; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(const Line&)>]'
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_heap.h:356:22:   required from 'constexpr void std::__make_heap(_RandomAccessIterator, _RandomAccessIterator, _Compare&) [with _RandomAccessIterator = Line*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(const Line&)>]'
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_algo.h:1635:23:   required from 'constexpr void std::__heap_select(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = Line*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(const Line&)>]'
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_algo.h:1910:25:   required from 'constexpr void std::__partial_sort(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = Line*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(const Line&)>]'
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_algo.h:1926:27:   required from 'constexpr void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = Line*; _Size = long long int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(const Line&)>]'
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_algo.h:1947:25:   required from 'constexpr void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = Line*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(const Line&)>]'
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_algo.h:4894:18:   required from 'constexpr void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = Line*; _Compare = bool (*)(const Line&)]'
0_0_39423367_16741.cpp:81:7:   required from here
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/predefined_ops.h:196:30: error: too many arguments to function
  196 |         { return bool(_M_comp(*__it, __val)); }
      |                       ~~~~~~~^~~~~~~~~~~~~~


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-24 16:33:09, Gzip enabled