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_21601280_24891.cpp:6:9: error: redeclaration of 'int& node::nbsp'
     int to,val;
         ^
0_0_21601280_24891.cpp:6:2: note: previous declaration 'int& node::nbsp'
     int to,val;
  ^
0_0_21601280_24891.cpp:7:2: error: redeclaration of 'int& node::nbsp'
     node(){}
  ^
0_0_21601280_24891.cpp:6:2: note: previous declaration 'int& node::nbsp'
     int to,val;
  ^
0_0_21601280_24891.cpp:7:9: error: redeclaration of 'int& node::nbsp'
     node(){}
         ^
0_0_21601280_24891.cpp:6:2: note: previous declaration 'int& node::nbsp'
     int to,val;
  ^
0_0_21601280_24891.cpp:8:2: error: redeclaration of 'int& node::nbsp'
     node(int a,int b){to=a;val=b;}
  ^
0_0_21601280_24891.cpp:6:2: note: previous declaration 'int& node::nbsp'
     int to,val;
  ^
0_0_21601280_24891.cpp:8:9: error: redeclaration of 'int& node::nbsp'
     node(int a,int b){to=a;val=b;}
         ^
0_0_21601280_24891.cpp:6:2: note: previous declaration 'int& node::nbsp'
     int to,val;
  ^
0_0_21601280_24891.cpp:9:2: error: redeclaration of 'int& node::nbsp'
     bool operator<(const node &xx)const{
  ^
0_0_21601280_24891.cpp:6:2: note: previous declaration 'int& node::nbsp'
     int to,val;
  ^
0_0_21601280_24891.cpp:9:9: error: redeclaration of 'int& node::nbsp'
     bool operator<(const node &xx)const{
         ^
0_0_21601280_24891.cpp:6:2: note: previous declaration 'int& node::nbsp'
     int to,val;
  ^
0_0_21601280_24891.cpp: In constructor 'node::node()':
0_0_21601280_24891.cpp:7:15: error: uninitialized reference member in 'int&' [-fpermissive]
     node(){}
               ^
0_0_21601280_24891.cpp:6:2: note: 'int& node::nbsp' should be initialized
     int to,val;
  ^
0_0_21601280_24891.cpp: In constructor 'node::node(int, int)':
0_0_21601280_24891.cpp:8:15: error: uninitialized reference member in 'int&' [-fpermissive]
     node(int a,int b){to=a;val=b;}
               ^
0_0_21601280_24891.cpp:6:2: note: 'int& node::nbsp' should be initialized
     int to,val;
  ^
0_0_21601280_24891.cpp: In function 'void dijkstra(int)':
0_0_21601280_24891.cpp:18:2: error: 'nbsp' was not declared in this scope
     memset(dis,inf,sizeof dis);
  ^
0_0_21601280_24891.cpp:26:59: error: 'i' was not declared in this scope
             int to=mp[from][i].to;
                                                           ^
0_0_21601280_24891.cpp: In function 'int main()':
0_0_21601280_24891.cpp:36:2: error: 'nbsp' was not declared in this scope
     int i,j,t,tt=0;
  ^
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 GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:64,
                 from 0_0_21601280_24891.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_heap.h: In instantiation of 'void std::__push_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<node*, std::vector<node> >; _Distance = long long int; _Tp = node; _Compare = __gnu_cxx::__ops::_Iter_comp_val<std::less<node> >]':
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_heap.h:201:51:   required from 'void std::push_heap(_RAIter, _RAIter, _Compare) [with _RAIter = __gnu_cxx::__normal_iterator<node*, std::vector<node> >; _Compare = std::less<node>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:510:41:   required from 'void std::priority_queue<_Tp, _Sequence, _Compare>::push(std::priority_queue<_Tp, _Sequence, _Compare>::value_type&&) [with _Tp = node; _Sequence = std::vector<node>; _Compare = std::less<node>; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = node]'
0_0_21601280_24891.cpp:20:31:   required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_heap.h:131:29: error: use of deleted function 'node& node::operator=(node&&)'
    *(__first + __holeIndex) = _GLIBCXX_MOVE(*(__first + __parent));
                             ^
0_0_21601280_24891.cpp:5:8: note: 'node& node::operator=(node&&)' is implicitly deleted because the default definition would be ill-formed:
 struct node{
        ^
0_0_21601280_24891.cpp:5: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 GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:64,
                 from 0_0_21601280_24891.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_heap.h:135:32: error: use of deleted function 'node& node::operator=(node&&)'
       *(__first + __holeIndex) = _GLIBCXX_MOVE(__value);
                                ^
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 = __gnu_cxx::__normal_iterator<node*, std::vector<node> >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<std::less<node> >]':
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_heap.h:311:48:   required from 'void std::pop_heap(_RAIter, _RAIter, _Compare) [with _RAIter = __gnu_cxx::__normal_iterator<node*, std::vector<node> >; _Compare = std::less<node>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:537:40:   required from 'void std::priority_queue<_Tp, _Sequence, _Compare>::pop() [with _Tp = node; _Sequence = std::vector<node>; _Compare = std::less<node>]'
0_0_21601280_24891.cpp:23:62:   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 = __gnu_cxx::__normal_iterator<node*, std::vector<node> >; _Distance = long long int; _Tp = node; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<std::less<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 = __gnu_cxx::__normal_iterator<node*, std::vector<node> >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<std::less<node> >]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_heap.h:385:52:   required from 'void std::make_heap(_RAIter, _RAIter, _Compare) [with _RAIter = __gnu_cxx::__normal_iterator<node*, std::vector<node> >; _Compare = std::less<node>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:414:48:   required from 'std::priority_queue<_Tp, _Sequence, _Compare>::priority_queue(const _Compare&, _Sequence&&) [with _Tp = node; _Sequence = std::vector<node>; _Compare = std::less<node>]'
0_0_21601280_24891.cpp:19:36:   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
                             ^


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-06-28 22:56:51, Gzip enabled