*** Interpreter error recovered ***

i am compiling the following code with .x plots.C++ and getting the following error:
Error: Function plots() is not defined in current scope :0:
*** Interpreter error recovered ***

the code is:

#include <TStyle.h>
#include <TCanvas.h>
#include
#include
#include “TFile.h”
#include <TLorentzVector.h>
#include “TROOT.h”
#include "TH1F.h"
using namespace std;
int main(){

//TFile * inputfile = new TFile(“treeeight_out.root”,“READ”); TFile * inputfile2 = new TFile(“treenine_out.root”,“READ”);

TCanvas* comp = new TCanvas(“comp”,"",1100,1100);
TFile *f1=TFile::Open(“treeeight_out.root”);
TH1F h1=(TH1F)f1->Get(“Tmomen”);
TFile *f2=TFile::Open(“treenine_out.root”);
TH1F h2=(TH1F)f2->Get(“Tmomendata”);
h1->Draw(“histo”);
h1->SetLineColor(kRed);
h2->Draw(“histosame”);
h2->SetLineColor(kBlue);
comp->Update();
comp->Print(“pt”);
return 0;
}

can anybody help in this error.

Change “int main()” to “int plots()”

THANKS A TON!!! :smiley: