0_0_20474698_5821.cpp:5:22: error: expected ',' or '...' before 'a'
void quicksort(int[] a, int left, int right) {
^
0_0_20474698_5821.cpp: In function 'void quicksort(int*)':
0_0_20474698_5821.cpp:6:25: error: invalid operands of types 'std::ios_base&(std::ios_base&)' and 'std::ios_base&(std::ios_base&)' to binary 'operator+'
int mid = a[(left + right) >> 1];
^
0_0_20474698_5821.cpp:7:13: error: invalid conversion from 'std::ios_base& (*)(std::ios_base&)' to 'int' [-fpermissive]
int l = left;
^
0_0_20474698_5821.cpp:8:13: error: invalid conversion from 'std::ios_base& (*)(std::ios_base&)' to 'int' [-fpermissive]
int r = right;
^
0_0_20474698_5821.cpp:14:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if (l < right) quicksort(a, l, right);
^
0_0_20474698_5821.cpp:14:41: error: too many arguments to function 'void quicksort(int*)'
if (l < right) quicksort(a, l, right);
^
0_0_20474698_5821.cpp:5:6: note: declared here
void quicksort(int[] a, int left, int right) {
^
0_0_20474698_5821.cpp:15:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if (left < r) quicksort(a, left, r);
^
0_0_20474698_5821.cpp:15:39: error: too many arguments to function 'void quicksort(int*)'
if (left < r) quicksort(a, left, r);
^
0_0_20474698_5821.cpp:5:6: note: declared here
void quicksort(int[] a, int left, int right) {
^
0_0_20474698_5821.cpp: In function 'int main()':
0_0_20474698_5821.cpp:24:24: error: too many arguments to function 'void quicksort(int*)'
quicksort(a,1,n);
^
0_0_20474698_5821.cpp:5:6: note: declared here
void quicksort(int[] a, int left, int right) {
^
|