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_16398035_5071.cpp: In function 'void merge_sort(int, int)':
0_0_16398035_5071.cpp:51:24: error: invalid conversion from 'int*' to 'int' [-fpermissive]
   merge_sort(a,p,centre);
                        ^
0_0_16398035_5071.cpp:51:24: error: too many arguments to function 'void merge_sort(int, int)'
0_0_16398035_5071.cpp:45:6: note: declared here
 void merge_sort(int p,int r)
      ^
0_0_16398035_5071.cpp:52:26: error: invalid conversion from 'int*' to 'int' [-fpermissive]
   merge_sort(a,centre+1,r);
                          ^
0_0_16398035_5071.cpp:52:26: error: too many arguments to function 'void merge_sort(int, int)'
0_0_16398035_5071.cpp:45:6: note: declared here
 void merge_sort(int p,int r)
      ^
0_0_16398035_5071.cpp:53:21: error: invalid conversion from 'int*' to 'int' [-fpermissive]
   merge(a,p,centre,r);
                     ^
0_0_16398035_5071.cpp:53:21: error: too many arguments to function 'void merge(int, int, int)'
0_0_16398035_5071.cpp:11:6: note: declared here
 void merge(int p,int centre,int r)
      ^


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-12-03 01:57:33, Gzip enabled