Is it necessary to use curly bracket to get output from "eles" statement

My issue

Even if i use curly bracket for else statement it gives same result as without using it

My code

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

int main() {

  int Age = 25;
  int Vage = 18;

  if (Age < Vage)  //Insert {} before and after cout command
    cout << "Not old enough to vote." << endl;
    cout << "Wait for " << (Vage - Age) << " years";
    cout << "Old enough to vote!";
  return 0;

Learning course: Learn C++
Problem Link: CodeChef: Practical coding for everyone

They mentioned to add {} before and after cout command . you must have to use that.

@shivam_262144 No, you have to use curly bracket if you have multiple statements. But in your case, you have only one statement under “else” part, that’s why the outputs are coming same and you don’t really have to put curly brackets.