expected ';' before int (help pls)

I am getting the error:
error: expected ';' before 'int'

This is my code that I am trying to run. I am very new to this.

#include <iostream>
#include <stdlib.h>
using namespace std
int main()
{
system ("cls");
int var,sqrs ;
cout<<"Enter variable";
cin>>var;
sqrs=var*var;
cout<<"\n The square is :";
cout<<sqrs;
return 0;
}

Last edited on
You've missed a ; at the end of a line before that.
I don't know where :( I have inserted ';' at the end of all lines.
I forgot to put ';' after std. Its solved now :D
Topic archived. No new replies allowed.