For this Question: Given a series and an integer N, your task is to print the sum of it's first N terms.

Series:- 3, 5, 9, 17, 33.<b>User Task:</b>
Since this will be a functional problem, you don't have to take input. You just have to complete the function <b>SeriesSum()</b> that takes the integer N as parameter.

<b>Constraints:</b>
1 <= N <= 20Return the sum of N terms.Sample Input:-
3

Sample Output:-
17

Sample Input:-
2

Sample Output:-
8, I have written this Solution Code: 
int SeriesSum(int N){
int n=1;
int ans=3;
int res=3;
for(int i=1;i<N;i++){
n*=2;
res+=n;
ans+=res;
    
}
return ans;
}
, In this Programming Language: C, Now tell me if this Code is compilable or not?