The size of the array is taken as 100 but the constraints say that the size of array should be 1000000. This is causing the sigsegv error.
Also bubble sort will give time limit exceed here, try to use merge sort.
There is also library function in c++, sort(), you can use this once for understanding how to use it, but I would strongly recommend that you must also try it with merge sort or any other O(n log(n)) complexity algorithm.
Although, bubble sort will not work here because of the time limit, still I should point this out that the code for bubble sort can be improved further. The iterations in the second loop for sorting can be reduced further.
If you still have any problem, just comment below.