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_22096821_19467.cpp:10:2: error: redeclaration of 'int& Node::nbsp'
  ll y;
  ^
0_0_22096821_19467.cpp:9:2: note: previous declaration 'int& Node::nbsp'
  ll x;
  ^
0_0_22096821_19467.cpp:11:2: error: redeclaration of 'int& Node::nbsp'
  int I; 
  ^
0_0_22096821_19467.cpp:9:2: note: previous declaration 'int& Node::nbsp'
  ll x;
  ^
0_0_22096821_19467.cpp:12:8: error: use of deleted function 'Node::Node()'
 }a[maxn];
        ^
0_0_22096821_19467.cpp:7:8: note: 'Node::Node()' is implicitly deleted because the default definition would be ill-formed:
 struct Node
        ^
0_0_22096821_19467.cpp:7:8: error: uninitialized reference member in 'struct Node'
0_0_22096821_19467.cpp:9:2: note: 'int& Node::nbsp' should be initialized
  ll x;
  ^
0_0_22096821_19467.cpp: In function 'bool cmp1(Node, Node)':
0_0_22096821_19467.cpp:16:2: error: 'nbsp' was not declared in this scope
  return A.x<B.x;
  ^
0_0_22096821_19467.cpp: In function 'bool cmp2(Node, Node)':
0_0_22096821_19467.cpp:20:2: error: 'nbsp' was not declared in this scope
  return A.y<B.y;
  ^
0_0_22096821_19467.cpp: In function 'int main()':
0_0_22096821_19467.cpp:24:2: error: 'nbsp' was not declared in this scope
   int test,n,i;
  ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from 0_0_22096821_19467.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h: In instantiation of 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = Node*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(Node, Node)>]':
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1884:70:   required from 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = Node*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(Node, Node)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1970:55:   required from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = Node*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(Node, Node)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4716:78:   required from 'void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = Node*; _Compare = bool (*)(Node, Node)]'
0_0_22096821_19467.cpp:34:26:   required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1851:17: error: use of deleted function 'Node& Node::operator=(Node&&)'
        *__first = _GLIBCXX_MOVE(__val);
                 ^
0_0_22096821_19467.cpp:7:8: note: 'Node& Node::operator=(Node&&)' is implicitly deleted because the default definition would be ill-formed:
 struct Node
        ^
0_0_22096821_19467.cpp:7:8: error: non-static reference member 'int& Node::nbsp', can't use default assignment operator
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:61:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
                 from 0_0_22096821_19467.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_heap.h: In instantiation of 'void std::__pop_heap(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = Node*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(Node, Node)>]':
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1676:50:   required from 'void std::__heap_select(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = Node*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(Node, Node)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1932:59:   required from 'void std::__partial_sort(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = Node*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(Node, Node)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1947:59:   required from 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = Node*; _Size = long long int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(Node, Node)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1969:11:   required from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = Node*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(Node, Node)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4716:78:   required from 'void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = Node*; _Compare = bool (*)(Node, Node)]'
0_0_22096821_19467.cpp:34:26:   required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_heap.h:244:17: error: use of deleted function 'Node& Node::operator=(Node&&)'
       *__result = _GLIBCXX_MOVE(*__first);
                 ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_heap.h: In instantiation of 'void std::__adjust_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = Node*; _Distance = long long int; _Tp = Node; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(Node, Node)>]':
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_heap.h:334:15:   required from 'void std::__make_heap(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = Node*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(Node, Node)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1673:49:   required from 'void std::__heap_select(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = Node*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(Node, Node)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1932:59:   required from 'void std::__partial_sort(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = Node*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(Node, Node)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1947:59:   required from 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = Node*; _Size = long long int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(Node, Node)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1969:11:   required from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = Node*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(Node, Node)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4716:78:   required from 'void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = Node*; _Compare = bool (*)(Node, Node)]'
0_0_22096821_19467.cpp:34:26:   required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_heap.h:218:29: error: use of deleted function 'Node& Node::operator=(Node&&)'
    *(__first + __holeIndex) = _GLIBCXX_MOVE(*(__first + __secondChild));
                             ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_heap.h:224:29: error: use of deleted function 'Node& Node::operator=(Node&&)'
    *(__first + __holeIndex) = _GLIBCXX_MOVE(*(__first
                             ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:70,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
                 from 0_0_22096821_19467.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h: In instantiation of 'void std::swap(_Tp&, _Tp&) [with _Tp = Node]':
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:148:22:   required from 'void std::iter_swap(_ForwardIterator1, _ForwardIterator2) [with _ForwardIterator1 = Node*; _ForwardIterator2 = Node*]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:84:34:   required from 'void std::__move_median_to_first(_Iterator, _Iterator, _Iterator, _Iterator, _Compare) [with _Iterator = Node*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(Node, Node)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1921:13:   required from '_RandomAccessIterator std::__unguarded_partition_pivot(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = Node*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(Node, Node)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1952:62:   required from 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = Node*; _Size = long long int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(Node, Node)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1969:11:   required from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = Node*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(Node, Node)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4716:78:   required from 'void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = Node*; _Compare = bool (*)(Node, Node)]'
0_0_22096821_19467.cpp:34:26:   required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:176:11: error: use 


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-22 17:17:30, Gzip enabled