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_25476495_8248.cpp: In function 'void sort(int*, int, int, int*)':
0_0_25476495_8248.cpp:34:16: error: invalid conversion from 'int' to 'int*' [-fpermissive]
   sort(left,mid);
                ^
0_0_25476495_8248.cpp:34:16: error: too few arguments to function 'void sort(int*, int, int, int*)'
0_0_25476495_8248.cpp:29:6: note: declared here
 void sort(int arr[],int left,int right,int temp[])
      ^
0_0_25476495_8248.cpp:35:11: error: invalid conversion from 'int' to 'int*' [-fpermissive]
   sort(mid+1,right);
           ^
0_0_25476495_8248.cpp:35:19: error: too few arguments to function 'void sort(int*, int, int, int*)'
   sort(mid+1,right);
                   ^
0_0_25476495_8248.cpp:29:6: note: declared here
 void sort(int arr[],int left,int right,int temp[])
      ^
0_0_25476495_8248.cpp:36:23: error: expected ')' before ';' token
   merge(left,mid,right;
                       ^
0_0_25476495_8248.cpp: In function 'int main()':
0_0_25476495_8248.cpp:52:13: error: too few arguments to function 'void sort(int*, int, int, int*)'
   sort(0,n-1);
             ^
0_0_25476495_8248.cpp:29:6: note: declared here
 void sort(int arr[],int left,int right,int temp[])
      ^


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-29 22:20:36, Gzip enabled