Problem with dynamic allocation of array

why I declare the dynamic array in my sublime on my Mac it shows an error stating expected ; at the end of the statement but when I tried the code on an online compiler it worked fine kindly look into it .

my code Is :-https://ide.codingblocks.com/s/420028

it’s also working for me
the error must be in your ide

which ide or editor you are using?
first try once again

I am using sublime text

I am using sublime text . I tried it many times but it didn’t worked

i also use sublime text

how do you compile your code ?
using terminal

yes I compile it using terminal

Do you have c++11 and c++14 in your build systems I don’t have them maybe its because of that

i am sharing meet link
join this

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.

plz give feedback
it’s imp