Error in close brace bracket i don't know why.in this video as showing same code

#include
#include
using namespace std;
void PrintArray(int a[], int n){
for(int i=0;i<n;i++){
cout<<a[i]<<" ";
}
cout<<endl;
}
bool compare(int a, int b){
return a<b
}
void BubbleShorting(int a[],int n, bool(&mycompare)(int a,int b)){
for(int i=0;i<n-1;i++){
for(int j=0;j<n-1-i;j++){
if(mycompare(a[i],a[j+1])){
swap(a[j],a[j+1]);

        }

    }
}

}
int main(){
int a[]={5,8,4,3,2,1,8};
int n= sizeof(a)/sizeof(int);
cout<<“Before Bubble Sort:”;
PrintArray(a,n);
sort(a,a+n,compare);
// Calling Bubbole Sort
//BubbleShorting(a,n,compare);
cout<<“After Bubble Sort”;

PrintArray(a,n);


return 0;

}

hi @dheerajjha11111_bb855e8d7a52ef0d send the code on ide.codingblocks.com

  1. login
  2. write
  3. save (ctrl + s)
  4. send the url of the page

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.