Help me in solving CPPFALL79 problem

My issue

how to solve this problem

My code

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

int main() {
    int age = 20;
    if (age<=18)
        cout<<("Eligible to vote")<<endl;
    else
        cout<<("Not Eligible to vote")<<endl;
return 1;
}

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