Language: C++

/***
*	??????????????????
****/

#include <iostream>
#include <vector>
using namespace std;

int bubbleSort(vector<int> a[], int n);

int main(void)		//???????????¢??°
{
	int n;
	cin >> n;
	
	vector <int> str;
	str.resize(n);
	
	for(int i =0; i < n ;  i++){	//????????\???
		cin >> str[i] ;
	}
	
	int cnter =0;
	
	bubbleSort(str, n);
	
//----------------------------------	???????????????
	for(int i =0; i<n ; i++){
		cout << str[i] ;
		if(i != (n-1)){
			cout << " ";
		}
	}
	cout << endl;
	
	cout << cnter << endl;
	
	return 0;
}

vector<int> bubbleSort(vector<int> a[], int n)
{
	int cnter = 0;
	for( int i=0 ; i < n-1 ; ++i ){
		
		for(int j = (n-1) ; j< (i+1); j--){
			if( a[j] < a[j-1]){//????????????????´???¨??????
				int temp = a[j];
				a[j]     = a[j-1];
				a[j-1]   = temp;
				cnter ++;
			}
		}
	}
	return cnter;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:20: error: cannot convert 'std::vector<int>' to 'std::vector<int>*'
   25 |         bubbleSort(str, n);
      |                    ^~~
      |                    |
      |                    std::vector<int>
a.cc:9:28: note:   initializing argument 1 of 'int bubbleSort(std::vector<int>*, int)'
    9 | int bubbleSort(vector<int> a[], int n);
      |                ~~~~~~~~~~~~^~~
a.cc: At global scope:
a.cc:41:13: error: ambiguating new declaration of 'std::vector<int> bubbleSort(std::vector<int>*, int)'
   41 | vector<int> bubbleSort(vector<int> a[], int n)
      |             ^~~~~~~~~~
a.cc:9:5: note: old declaration 'int bubbleSort(std::vector<int>*, int)'
    9 | int bubbleSort(vector<int> a[], int n);
      |     ^~~~~~~~~~
a.cc: In function 'std::vector<int> bubbleSort(std::vector<int>*, int)':
a.cc:48:47: error: cannot convert 'std::vector<int>' to 'int' in initialization
   48 |                                 int temp = a[j];
      |                                            ~~~^
      |                                               |
      |                                               std::vector<int>
a.cc:50:44: error: no match for 'operator=' (operand types are 'std::vector<int>' and 'int')
   50 |                                 a[j-1]   = temp;
      |                                            ^~~~
In file included from /usr/include/c++/14/vector:72,
                 from a.cc:6:
/usr/include/c++/14/bits/vector.tcc:210:5: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = int; _Alloc = std::allocator<int>]'
  210 |     vector<_Tp, _Alloc>::
      |     ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/vector.tcc:211:42: note:   no known conversion for argument 1 from 'int' to 'const std::vector<int>&'
  211 |     operator=(const vector<_Tp, _Alloc>& __x)
      |               ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
In file included from /usr/include/c++/14/vector:66:
/usr/include/c++/14/bits/stl_vector.h:766:7: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::vector<_Tp, _Alloc>&&) [with _Tp = int; _Alloc = std::allocator<int>]'
  766 |       operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
      |       ^~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:766:26: note:   no known conversion for argument 1 from 'int' to 'std::vector<int>&&'
  766 |       operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
      |                 ~~~~~~~~~^~~
/usr/include/c++/14/bits/stl_vector.h:788:7: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = int; _Alloc = std::allocator<int>]'
  788 |       operator=(initializer_list<value_type> __l)
      |       ^~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:788:46: note:   no known conversion for argument 1 from 'int' to 'std::initializer_list<int>'
  788 |       operator=(initializer_list<value_type> __l)
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
a.cc:55:16: error: could not convert 'cnter' from 'int' to 'std::vector<int>'
   55 |         return cnter;
      |                ^~~~~
      |                |
      |                int