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_18730782_289.cpp: In function 'int Rank(int (*)[550])':
0_0_18730782_289.cpp:92:27: error: call of overloaded 'swap(int [550], int [550])' is ambiguous
             swap(c[i],c[r]);
                           ^
0_0_18730782_289.cpp:92:27: note: candidates are:
0_0_18730782_289.cpp:60:26: note: void swap(T_T*, T_T*) [with T_T = int]
 template<class T_T> void swap(T_T *a,T_T *b){T_T c;c=a;a=b;b=c;}
                          ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:70,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
                 from 0_0_18730782_289.cpp:7:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:185:5: note: void std::swap(_Tp (&)[_Nm], _Tp (&)[_Nm]) [with _Tp = int; long long unsigned int _Nm = 550ull]
     swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:166:5: note: void std::swap(_Tp&, _Tp&) [with _Tp = int [550]]
     swap(_Tp& __a, _Tp& __b)
     ^


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-09-28 23:30:49, Gzip enabled