Help me in solving VAD8V2 problem

My issue

My code

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

int main() {
  int s = 14;
  int area = s*s;
  int cost = area * 7;
  cout << cost << endl;     //area and cost have to be output on separate lines
  cout << cost;             //output the $ character after cost without any space
  cout << "$";
  
  return 0;
}

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

I think by mistake you are trying to take output for cost 2 times first it will be for area.

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

int main() {
  int s = 14;
  int area = (s * s);
  int cost = ((area) *7);
  cout << area << endl;     //area and cost have to be output on separate lines
  cout << cost<<"$";             //output the $ character after cost without any

  
  
  return 0;

}