Hello. Just to clarify, I have my code as follows. It runs on my machine but I get Runtime Error when submitting. When I change qsort() to an bubble sort, no more Runtime Error but I get TLE. So I guess qsort() is not allowed?

```
#include <stdlib.h>
#include <iostream>
using namespace std;
class Solution {
public:
static int cmp(const void *a, const void *b) {
return (*(int*)a - *(int*)b);
}
int singleNumber(int a[], int n) {
int i =0 ;
qsort(a, n, sizeof(int), cmp);
for (i=0;i<n;i++) cout << a[i] << " ";
if (n>=1 && a[0]!= a[1]) return a[0];
if (n >=2 && a[n-2] != a[n-1]) return a[n-1];
for (i=0; i<n-2; i++)
if (a[i]!=a[i+1] && a[i+1]!=a[i+2]) return a[i+1];
}
};
```