Help me in solving CPPFALL192 problem

My issue

include <bits/stdc++.h>
using namespace std;

int main() {
// your code goes here
int n;
cin>>n;
if(n%2==0)
{
int num=n;
cout<<num<<endl;
}

}

My code

#include <bits/stdc++.h>
using namespace std;

int main() {
	// your code goes here
	int n;
	cin>>n;
	if(n%2==0)
	{
	    int num=n;
	    cout<<num<<endl;
	}

}

Learning course: Learn Programming and Problem Solving using C++
Problem Link: https://www.codechef.com/learn/course/sit-cpp-fall/SITFALL32/problems/CPPFALL192