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_21020401_32639.cpp:15:8: error: redeclaration of 'int& point::nbsp'
     int x,y;
        ^
0_0_21020401_32639.cpp:15:2: note: previous declaration 'int& point::nbsp'
     int x,y;
  ^
0_0_21020401_32639.cpp:15:14: error: redeclaration of 'int& point::nbsp'
     int x,y;
              ^
0_0_21020401_32639.cpp:15:2: note: previous declaration 'int& point::nbsp'
     int x,y;
  ^
0_0_21020401_32639.cpp:19:8: error: redeclaration of 'int& state::nbsp'
     point c,m,p;
        ^
0_0_21020401_32639.cpp:19:2: note: previous declaration 'int& state::nbsp'
     point c,m,p;
  ^
0_0_21020401_32639.cpp:19:14: error: redeclaration of 'int& state::nbsp'
     point c,m,p;
              ^
0_0_21020401_32639.cpp:19:2: note: previous declaration 'int& state::nbsp'
     point c,m,p;
  ^
0_0_21020401_32639.cpp:20:2: error: redeclaration of 'int& state::nbsp'
     int step;
  ^
0_0_21020401_32639.cpp:19:2: note: previous declaration 'int& state::nbsp'
     point c,m,p;
  ^
0_0_21020401_32639.cpp:20:8: error: redeclaration of 'int& state::nbsp'
     int step;
        ^
0_0_21020401_32639.cpp:19:2: note: previous declaration 'int& state::nbsp'
     point c,m,p;
  ^
0_0_21020401_32639.cpp:20:14: error: redeclaration of 'int& state::nbsp'
     int step;
              ^
0_0_21020401_32639.cpp:19:2: note: previous declaration 'int& state::nbsp'
     point c,m,p;
  ^
0_0_21020401_32639.cpp:21:2: error: use of deleted function 'state::state()'
 }in,out;
  ^
0_0_21020401_32639.cpp:17:8: note: 'state::state()' is implicitly deleted because the default definition would be ill-formed:
 struct state
        ^
0_0_21020401_32639.cpp:17:8: error: uninitialized reference member in 'struct state'
0_0_21020401_32639.cpp:19:2: note: 'int& state::nbsp' should be initialized
     point c,m,p;
  ^
0_0_21020401_32639.cpp:17:8: error: use of deleted function 'point::point()'
 struct state
        ^
0_0_21020401_32639.cpp:13:8: note: 'point::point()' is implicitly deleted because the default definition would be ill-formed:
 struct point
        ^
0_0_21020401_32639.cpp:13:8: error: uninitialized reference member in 'struct point'
0_0_21020401_32639.cpp:15:2: note: 'int& point::nbsp' should be initialized
     int x,y;
  ^
0_0_21020401_32639.cpp:17:8: error: use of deleted function 'point::point()'
 struct state
        ^
0_0_21020401_32639.cpp:17:8: error: use of deleted function 'point::point()'
0_0_21020401_32639.cpp:21:5: error: use of deleted function 'state::state()'
 }in,out;
     ^
0_0_21020401_32639.cpp: In function 'bool isok(point&)':
0_0_21020401_32639.cpp:24:2: error: 'nbsp' was not declared in this scope
     if(p.x >= 0 && p.x < n && p.y >= 0 && p.y < m)
  ^
0_0_21020401_32639.cpp: In function 'void bfs()':
0_0_21020401_32639.cpp:31:2: error: 'nbsp' was not declared in this scope
     int i;
  ^
0_0_21020401_32639.cpp:34:48: error: use of deleted function 'state& state::operator=(const state&)'
         out = all.front();
                                                ^
0_0_21020401_32639.cpp:17:8: note: 'state& state::operator=(const state&)' is implicitly deleted because the default definition would be ill-formed:
 struct state
        ^
0_0_21020401_32639.cpp:17:8: error: non-static reference member 'int& state::nbsp', can't use default assignment operator
0_0_21020401_32639.cpp:17:8: error: use of deleted function 'point& point::operator=(const point&)'
0_0_21020401_32639.cpp:13:8: note: 'point& point::operator=(const point&)' is implicitly deleted because the default definition would be ill-formed:
 struct point
        ^
0_0_21020401_32639.cpp:13:8: error: non-static reference member 'int& point::nbsp', can't use default assignment operator
0_0_21020401_32639.cpp:17:8: error: use of deleted function 'point& point::operator=(const point&)'
 struct state
        ^
0_0_21020401_32639.cpp:17:8: error: use of deleted function 'point& point::operator=(const point&)'
0_0_21020401_32639.cpp:38:71: error: use of deleted function 'state& state::operator=(const state&)'
             in = out;
                                                                       ^
0_0_21020401_32639.cpp:44:96: error: reference to 'hash' is ambiguous
                 if(!hash[in.c.x][in.c.y][in.m.x][in.m.y][in.p.x][in.p.y])
                                                                                                ^
0_0_21020401_32639.cpp:6:6: note: candidates are: bool hash [11][11][11][11][11][11]
 bool hash[11][11][11][11][11][11];
      ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:3068:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/locale_classes.h:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:41,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_21020401_32639.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/functional_hash.h:58:12: note:                 template<class _Tp> struct std::hash
     struct hash;
            ^
0_0_21020401_32639.cpp:47:116: error: reference to 'hash' is ambiguous
                     hash[in.c.x][in.c.y][in.m.x][in.m.y][in.p.x][in.p.y] = true;
                                                                                                                    ^
0_0_21020401_32639.cpp:6:6: note: candidates are: bool hash [11][11][11][11][11][11]
 bool hash[11][11][11][11][11][11];
      ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:3068:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/locale_classes.h:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:41,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_21020401_32639.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/functional_hash.h:58:12: note:                 template<class _Tp> struct std::hash
     struct hash;
            ^
0_0_21020401_32639.cpp:60:71: error: use of deleted function 'state& state::operator=(const state&)'
             in = out;
                                                                       ^
0_0_21020401_32639.cpp:64:74: error: use of deleted function 'point::point()'
             point mm;
                                                                          ^
0_0_21020401_32639.cpp:67:112: error: reference to 'hash' is ambiguous
             if(isok(in.m) && map[mm.x][mm.y] == '.' && !hash[in.c.x][in.c.y][in.m.x][in.m.y][in.p.x][in.p.y] && (mm.x != in.c.x || mm.y != in.c.y) && (mm.x != in.p.x || mm.y != in.p.y))
                                                                                                                ^
0_0_21020401_32639.cpp:6:6: note: candidates are: bool hash [11][11][11][11][11][11]
 bool hash[11][11][11][11][11][11];
      ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:3068:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/locale_classes.h:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:41,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_21020401_32639.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/functional_hash.h:58:12: note:                 template<class _Tp> struct std::hash
     struct hash;
            ^
0_0_21020401_32639.cpp:72:116: error: reference to 'hash' is ambiguous
                     hash[in.c.x][in.c.y][in.m.x][in.m.y][in.p.x][in.p.y] = true;
                                                                                                                    ^
0_0_21020401_32639.cpp:6:6: note: candidates are: bool hash [11][11][11][11][11][11]
 bool hash[11][11][11][11][11][11];
      ^
In file included from D:/HDOJ/Com


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-12-02 19:05:21, Gzip enabled