Change your code into:
int main()
{
int N,count=0,i,j;
scanf("%d",&N);
int A[N];
...
0
solved Find the number of pairs (A[i], A[j]) such that i < j and A[i]**A[j] > A[j]**A[i]
Change your code into:
int main()
{
int N,count=0,i,j;
scanf("%d",&N);
int A[N];
...
0
solved Find the number of pairs (A[i], A[j]) such that i < j and A[i]**A[j] > A[j]**A[i]