A[10005] problem in video?

is 10^5 array size same as a[10005]?

NO
10^5 is not equal to 100000
because ^ is XOR operator in c++

I mean 10 raise to the power 5 is same as 100005?

yes i explained the same