Help me in solving DSAAGP50 problem

My issue

The first line of input will contain a single integer
N
N denoting the number of elements in
A
A.
the second line contains
N
N space-separated integers denoting elements of the array
A
A.

My code

#include <bits/stdc++.h>
using namespace std;
int main()
{

	int A[10]={8,2,4,1,4};
 int sum=0;
 for( int i=0;i<5;i++){
     sum=sum+A[i];
     }
     cout<<sum<<endl;
 return 0;
}

Learning course: BCS301: Data structures
Problem Link: https://www.codechef.com/learn/course/abesit-dsa/ABESITDS06/problems/DSAAGP50

kya galti h