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_17201132_17861.cpp: In function 'int main()':
0_0_17201132_17861.cpp:67:5: error: redefinition of 'int main()'
 int main(){
     ^
0_0_17201132_17861.cpp:5:5: note: 'int main()' previously defined here
 int main(){
     ^
0_0_17201132_17861.cpp: In function 'bool bfs()':
0_0_17201132_17861.cpp:173:10: error: reference to 'end' is ambiguous
  q2.push(end);
          ^
0_0_17201132_17861.cpp:115:6: note: candidates are: state end
 }sta,end;
      ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:42:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
                 from 0_0_17201132_17861.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/initializer_list:99:5: note:                 template<class _Tp> constexpr const _Tp* std::end(std::initializer_list<_Tp>)
     end(initializer_list<_Tp> __ils) noexcept
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:51:0,
                 from 0_0_17201132_17861.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:97:5: note:                 template<class _Tp, long long unsigned int _Nm> _Tp* std::end(_Tp (&)[_Nm])
     end(_Tp (&__arr)[_Nm])
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:78:5: note:                 template<class _Container> decltype (__cont.end()) std::end(const _Container&)
     end(const _Container& __cont) -> decltype(__cont.end())
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:68:5: note:                 template<class _Container> decltype (__cont.end()) std::end(_Container&)
     end(_Container& __cont) -> decltype(__cont.end())
     ^
0_0_17201132_17861.cpp:174:8: error: reference to 'end' is ambiguous
  visit(end,2);
        ^
0_0_17201132_17861.cpp:115:6: note: candidates are: state end
 }sta,end;
      ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:42:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
                 from 0_0_17201132_17861.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/initializer_list:99:5: note:                 template<class _Tp> constexpr const _Tp* std::end(std::initializer_list<_Tp>)
     end(initializer_list<_Tp> __ils) noexcept
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:51:0,
                 from 0_0_17201132_17861.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:97:5: note:                 template<class _Tp, long long unsigned int _Nm> _Tp* std::end(_Tp (&)[_Nm])
     end(_Tp (&__arr)[_Nm])
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:78:5: note:                 template<class _Container> decltype (__cont.end()) std::end(const _Container&)
     end(const _Container& __cont) -> decltype(__cont.end())
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:68:5: note:                 template<class _Container> decltype (__cont.end()) std::end(_Container&)
     end(_Container& __cont) -> decltype(__cont.end())
     ^
0_0_17201132_17861.cpp: In function 'int main()':
0_0_17201132_17861.cpp:182:5: error: redefinition of 'int main()'
 int main(){
     ^
0_0_17201132_17861.cpp:5:5: note: 'int main()' previously defined here
 int main(){
     ^
0_0_17201132_17861.cpp:187:13: error: reference to 'end' is ambiguous
    sta.step=end.step=1;
             ^
0_0_17201132_17861.cpp:115:6: note: candidates are: state end
 }sta,end;
      ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:42:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
                 from 0_0_17201132_17861.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/initializer_list:99:5: note:                 template<class _Tp> constexpr const _Tp* std::end(std::initializer_list<_Tp>)
     end(initializer_list<_Tp> __ils) noexcept
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:51:0,
                 from 0_0_17201132_17861.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:97:5: note:                 template<class _Tp, long long unsigned int _Nm> _Tp* std::end(_Tp (&)[_Nm])
     end(_Tp (&__arr)[_Nm])
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:78:5: note:                 template<class _Container> decltype (__cont.end()) std::end(const _Container&)
     end(const _Container& __cont) -> decltype(__cont.end())
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:68:5: note:                 template<class _Container> decltype (__cont.end()) std::end(_Container&)
     end(_Container& __cont) -> decltype(__cont.end())
     ^
0_0_17201132_17861.cpp:190:4: error: reference to 'end' is ambiguous
    end.nd[i].r=en[i*2]-1; 
    ^
0_0_17201132_17861.cpp:115:6: note: candidates are: state end
 }sta,end;
      ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:42:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
                 from 0_0_17201132_17861.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/initializer_list:99:5: note:                 template<class _Tp> constexpr const _Tp* std::end(std::initializer_list<_Tp>)
     end(initializer_list<_Tp> __ils) noexcept
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:51:0,
                 from 0_0_17201132_17861.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:97:5: note:                 template<class _Tp, long long unsigned int _Nm> _Tp* std::end(_Tp (&)[_Nm])
     end(_Tp (&__arr)[_Nm])
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:78:5: note:                 template<class _Container> decltype (__cont.end()) std::end(const _Container&)
     end(const _Container& __cont) -> decltype(__cont.end())
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:68:5: note:                 template<class _Container> decltype (__cont.end()) std::end(_Container&)
     end(_Container& __cont) -> decltype(__cont.end())
     ^
0_0_17201132_17861.cpp:191:4: error: reference to 'end' is ambiguous
    end.nd[i].c=en[i*2+1]-1; 
    ^
0_0_17201132_17861.cpp:115:6: note: candidates are: state end
 }sta,end;
      ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:42:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
                 from 0_0_17201132_17861.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/initializer_list:99:5: note:                 template<class _Tp> constexpr const _Tp* std::end(std::initializer_list<_Tp>)
     end(initializer_list<_Tp> __ils) noexcept
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:51:0,
                 from 0_0_17201132_17861.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:97:5: note:                 template<class _Tp, long long unsigned int _Nm> _Tp* std::end(_Tp (&)[_Nm])
     end(_Tp (&__arr)[_Nm])
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:78:5: note:                 template<class _Container> decltype (__cont.end()) std::end(const _Container&)
     end(const _Container& __cont) -> decltype(__cont.end())
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:68:5: note:                 template<class _Container> decltype (__cont.end()) std::end(_Container&)
     end(_Container& __cont) -> decltype(__cont.end())
     ^
0_0_17201132_17861.cpp: At global scope:
0_0_17201132_17861.cpp:225:5: error: redefinition of 'int n'
 int n,a,b;
     ^
0_0_17201132_17861.cpp:61:5: note: 'int n' previously declared here
 int n,m,k,s,a[101],b[101];
     ^
0_0_17201132_17861.cpp:225:7: error: conflicting declaration 'int a'
 int n,a,b;
       ^
0_0_17201132_17861.cpp:61:13: note: previous declaration as 'int a [101]'
 int n,m,k,s,a[101],b[101];
             ^
0_0_17201132_17861.cpp:225:9: error: conflicting declaration 'int b'
 int n,a,b;
         ^
0_0_17201132_17861.cpp:61:20: note: previous declaration as 'int b [101]'
 int n,m,k,s,a[101],b[101];
                    ^
0_0_17201132_17861.cpp: In function 'int main()':
0_0_17201132_17861.cpp:227:5: error: redefinition of 'int main()'
 int main(){
     ^
0_0_17201132_17861.cpp:5:5: note: 'int main()' previously defined here
 int main(){
     ^
0_0_17201132_17861.cpp:234:14: error: invalid conversion from 'int*' to 'int' [-fpermissive]
     merge(a,b); 
              ^
0_0_17201132_17861.cpp:215:6: note: initializing argument 1 of 'void merge(int, int)'
 void merge(int x,int y){
      ^
0_0_17201132_17861.cpp:234:14: error: invalid conversion from 'int*' to 'int' [-fpermissive]
     merge(a,b); 
              ^
0_0_17201132_17861.cpp:215:6: note: initializing argument 2 of 'void merge(int, int)'
 void merge(int x,int y){
      ^
0_0_17201132_17861.cpp:237:11: error: invalid conversion from 'int*' to 'int' [-fpermissive]
     find(a);
           ^
0_0_17201132_17861.cpp:207:5: note: initializing argument 1 of 'int find(int)'
 int find(int x){
     ^
0_0_17201132_17861.cpp:238:22: error: invalid types 'int [30003][int [101]]' f


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-28 22:34:34, Gzip enabled