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_13844115_32650.cpp: In function 'int spfa(int, int)':
0_0_13844115_32650.cpp:37:9: error: 'i' was not declared in this scope
     for(i=0;i<MAX;i++) dis[i]=inf;
         ^
0_0_13844115_32650.cpp:59:33: error: 't' was not declared in this scope
     if(dis[st]!=inf) return dis[t];
                                 ^
0_0_13844115_32650.cpp: In function 'int main()':
0_0_13844115_32650.cpp:69:16: error: no match for 'operator=' (operand types are 'point' and 'int')
        num_home=0;
                ^
0_0_13844115_32650.cpp:69:16: note: candidates are:
0_0_13844115_32650.cpp:18:8: note: point& point::operator=(const point&)
 struct point
        ^
0_0_13844115_32650.cpp:18:8: note:   no known conversion for argument 1 from 'int' to 'const point&'
0_0_13844115_32650.cpp:18:8: note: point& point::operator=(point&&)
0_0_13844115_32650.cpp:18:8: note:   no known conversion for argument 1 from 'int' to 'point&&'
0_0_13844115_32650.cpp:70:15: error: no match for 'operator=' (operand types are 'point' and 'int')
        num_man=0;
               ^
0_0_13844115_32650.cpp:70:15: note: candidates are:
0_0_13844115_32650.cpp:18:8: note: point& point::operator=(const point&)
 struct point
        ^
0_0_13844115_32650.cpp:18:8: note:   no known conversion for argument 1 from 'int' to 'const point&'
0_0_13844115_32650.cpp:18:8: note: point& point::operator=(point&&)
0_0_13844115_32650.cpp:18:8: note:   no known conversion for argument 1 from 'int' to 'point&&'
0_0_13844115_32650.cpp:81:20: error: no match for 'operator[]' (operand types are 'point [150]' and 'point')
                   H[num_home].x=i;
                    ^
0_0_13844115_32650.cpp:82:20: error: no match for 'operator[]' (operand types are 'point [150]' and 'point')
                   H[num_home].y=j;
                    ^
0_0_13844115_32650.cpp:83:27: error: no 'operator++(int)' declared for postfix '++' [-fpermissive]
                   num_home++;
                           ^
0_0_13844115_32650.cpp:87:20: error: no match for 'operator[]' (operand types are 'point [150]' and 'point')
                   M[num_man]=i;
                    ^
0_0_13844115_32650.cpp:88:20: error: no match for 'operator[]' (operand types are 'point [150]' and 'point')
                   M[num_man]=j;
                    ^
0_0_13844115_32650.cpp:89:26: error: no 'operator++(int)' declared for postfix '++' [-fpermissive]
                   num_man++;
                          ^
0_0_13844115_32650.cpp:94:17: error: no match for 'operator<' (operand types are 'int' and 'point')
        for(i=0;i<num_man;i++)
                 ^
0_0_13844115_32650.cpp:94:17: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:64:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
                 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_13844115_32650.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:220:5: note: template<class _T1, class _T2> constexpr bool std::operator<(const std::pair<_T1, _T2>&, const std::pair<_T1, _T2>&)
     operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:220:5: note:   template argument deduction/substitution failed:
0_0_13844115_32650.cpp:94:18: note:   mismatched types 'const std::pair<_T1, _T2>' and 'int'
        for(i=0;i<num_man;i++)
                  ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:67:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
                 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_13844115_32650.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:298:5: note: template<class _Iterator> bool std::operator<(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_Iterator>&)
     operator<(const reverse_iterator<_Iterator>& __x,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:298:5: note:   template argument deduction/substitution failed:
0_0_13844115_32650.cpp:94:18: note:   mismatched types 'const std::reverse_iterator<_Iterator>' and 'int'
        for(i=0;i<num_man;i++)
                  ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:67:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
                 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_13844115_32650.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:348:5: note: template<class _IteratorL, class _IteratorR> bool std::operator<(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_IteratorR>&)
     operator<(const reverse_iterator<_IteratorL>& __x,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:348:5: note:   template argument deduction/substitution failed:
0_0_13844115_32650.cpp:94:18: note:   mismatched types 'const std::reverse_iterator<_Iterator>' and 'int'
        for(i=0;i<num_man;i++)
                  ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:67:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
                 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_13844115_32650.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:1072:5: note: template<class _IteratorL, class _IteratorR> bool std::operator<(const std::move_iterator<_Iterator>&, const std::move_iterator<_IteratorR>&)
     operator<(const move_iterator<_IteratorL>& __x,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:1072:5: note:   template argument deduction/substitution failed:
0_0_13844115_32650.cpp:94:18: note:   mismatched types 'const std::move_iterator<_Iterator>' and 'int'
        for(i=0;i<num_man;i++)
                  ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:67:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
                 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_13844115_32650.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:1078:5: note: template<class _Iterator> bool std::operator<(const std::move_iterator<_Iterator>&, const std::move_iterator<_Iterator>&)
     operator<(const move_iterator<_Iterator>& __x,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:1078:5: note:   template argument deduction/substitution failed:
0_0_13844115_32650.cpp:94:18: note:   mismatched types 'const std::move_iterator<_Iterator>' and 'int'
        for(i=0;i<num_man;i++)
                  ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52:0,
                 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_13844115_32650.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2588:5: note: template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const std::basic_string<_CharT, _Traits, _Alloc>&, const std::basic_string<_CharT, _Traits, _Alloc>&)
     operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2588:5: note:   template argument deduction/substitution failed:
0_0_13844115_32650.cpp:94:18: note:   mismatched types 'const std::basic_string<_CharT, _Traits, _Alloc>' and 'int'
        for(i=0;i<num_man;i++)
                  ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52:0,
                 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,
   


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-10-24 21:35:13, Gzip enabled