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_37840553_14094.cpp:163:11: error: redefinition of 'const int N'
 const int N=2e5+10;
           ^
0_0_37840553_14094.cpp:101:11: note: 'const int N' previously defined here
 const int N=5e4+10;
           ^
0_0_37840553_14094.cpp:174:5: error: redefinition of 'int n'
 int n;
     ^
0_0_37840553_14094.cpp:113:11: note: 'int n' previously declared here
 int fa[N],n;
           ^
0_0_37840553_14094.cpp: In function 'long long int kru(int)':
0_0_37840553_14094.cpp:192:29: error: no matching function for call to 'sort(edge*, edge*, <unresolved overloaded function type>)'
     sort(edg+1,edg+1+cnt,cmp);
                             ^
0_0_37840553_14094.cpp:192:29: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from 0_0_37840553_14094.cpp:98:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4676:5: note: template<class _RAIter> void std::sort(_RAIter, _RAIter)
     sort(_RandomAccessIterator __first, _RandomAccessIterator __last)
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4676:5: note:   template argument deduction/substitution failed:
0_0_37840553_14094.cpp:192:29: note:   candidate expects 2 arguments, 3 provided
     sort(edg+1,edg+1+cnt,cmp);
                             ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from 0_0_37840553_14094.cpp:98:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4705:5: note: template<class _RAIter, class _Compare> void std::sort(_RAIter, _RAIter, _Compare)
     sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4705:5: note:   template argument deduction/substitution failed:
0_0_37840553_14094.cpp:192:29: note:   couldn't deduce template parameter '_Compare'
     sort(edg+1,edg+1+cnt,cmp);
                             ^
0_0_37840553_14094.cpp: In function 'int main()':
0_0_37840553_14094.cpp:212:5: error: redefinition of 'int main()'
 int main()
     ^
0_0_37840553_14094.cpp:126:5: note: 'int main()' previously defined here
 int main()
     ^


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-30 00:50:20, Gzip enabled