there is a semicolon after int main(), which does not go there
x is undeclared
and missing semicolon after your last cout statement
are you wanting input from the user?
you were missing some brackets and semi colons also.
This is what it looks like working. I added in an int x to make it compile and run. but you coudl change it to cin or something
1 2 3 4 5 6 7 8 9 10 11
#include <iostream>
usingnamespace std;
int main()
{
int x = 1;
if (x>0) {cout<<"x is positive";}
elseif (x<0) {cout<<"x is negative";}
else {cout<<"x is 0";}
return 0;
}