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_17846043_14632.cpp: In function 'void linerev(int, int)':
0_0_17846043_14632.cpp:137:46: error: 'swap' was not declared in this scope
         if (dep[top[a]]<dep[top[b]]) swap(a,b);
                                              ^
0_0_17846043_14632.cpp:137:46: note: suggested alternatives:
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_17846043_14632.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2736:5: note:   'std::swap'
     swap(basic_string<_CharT, _Traits, _Alloc>& __lhs,
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/exception:162:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:39,
                 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_17846043_14632.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/exception_ptr.h:160:5: note:   'std::__exception_ptr::swap'
     swap(exception_ptr& __lhs, exception_ptr& __rhs)
     ^
0_0_17846043_14632.cpp:141:32: error: 'swap' was not declared in this scope
     if (dep[a]>dep[b]) swap(a,b);
                                ^
0_0_17846043_14632.cpp:141:32: note: suggested alternatives:
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_17846043_14632.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2736:5: note:   'std::swap'
     swap(basic_string<_CharT, _Traits, _Alloc>& __lhs,
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/exception:162:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:39,
                 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_17846043_14632.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/exception_ptr.h:160:5: note:   'std::__exception_ptr::swap'
     swap(exception_ptr& __lhs, exception_ptr& __rhs)
     ^
0_0_17846043_14632.cpp: In function 'void linerevadj(int, int)':
0_0_17846043_14632.cpp:148:46: error: 'swap' was not declared in this scope
         if (dep[top[a]]<dep[top[b]]) swap(a,b);
                                              ^
0_0_17846043_14632.cpp:148:46: note: suggested alternatives:
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_17846043_14632.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2736:5: note:   'std::swap'
     swap(basic_string<_CharT, _Traits, _Alloc>& __lhs,
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/exception:162:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:39,
                 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_17846043_14632.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/exception_ptr.h:160:5: note:   'std::__exception_ptr::swap'
     swap(exception_ptr& __lhs, exception_ptr& __rhs)
     ^
0_0_17846043_14632.cpp:155:32: error: 'swap' was not declared in this scope
     if (dep[a]>dep[b]) swap(a,b);
                                ^
0_0_17846043_14632.cpp:155:32: note: suggested alternatives:
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_17846043_14632.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2736:5: note:   'std::swap'
     swap(basic_string<_CharT, _Traits, _Alloc>& __lhs,
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/exception:162:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:39,
                 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_17846043_14632.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/exception_ptr.h:160:5: note:   'std::__exception_ptr::swap'
     swap(exception_ptr& __lhs, exception_ptr& __rhs)
     ^
0_0_17846043_14632.cpp: In function 'int linequery(int, int)':
0_0_17846043_14632.cpp:165:46: error: 'swap' was not declared in this scope
         if (dep[top[a]]<dep[top[b]]) swap(a,b);
                                              ^
0_0_17846043_14632.cpp:165:46: note: suggested alternatives:
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_17846043_14632.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2736:5: note:   'std::swap'
     swap(basic_string<_CharT, _Traits, _Alloc>& __lhs,
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/exception:162:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:39,
                 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_17846043_14632.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/exception_ptr.h:160:5: note:   'std::__exception_ptr::swap'
     swap(exception_ptr& __lhs, exception_ptr& __rhs)
     ^
0_0_17846043_14632.cpp:170:32: error: 'swap' was not declared in this scope
     if (dep[a]>dep[b]) swap(a,b);
                                ^
0_0_17846043_14632.cpp:170:32: note: suggested alternatives:
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_17846043_14632.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2736:5: note:   'std::swap'
     swap(basic_string<_CharT, _Traits, _Alloc>& __lhs,
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/exception:162:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:39,
                 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_17846043_14632.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/exception_ptr.h:160:5: note:   'std::__exception_ptr::swap'
     swap(exception_ptr& __lhs, exception_ptr& __rhs)
     ^


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-15 11:56:11, Gzip enabled