Run id: 149768
Main.cc:1:21: warning: extra tokens at end of #include directive
#include using namespace std;
^
Main.cc: In function 'int main()':
Main.cc:3:12: error: 'cin' was not declared in this scope
cin>>x;
^
Main.cc:3:12: note: suggested alternative:
In file included from Main.cc:1:0:
/usr/include/c++/5/iostream:60:18: note: 'std::cin'
extern istream cin; /// Linked to standard input
^
Main.cc:4:21: error: 'cout' was not declared in this scope
if(x>0){ cout<<"1"}
^
Main.cc:4:21: note: suggested alternative:
In file included from Main.cc:1:0:
/usr/include/c++/5/iostream:61:18: note: 'std::cout'
extern ostream cout; /// Linked to standard output
^
Main.cc: At global scope:
Main.cc:6:1: error: expected unqualified-id before 'else'
else if(x<0){ cout<<"-1"}
^
Main.cc:7:1: error: expected declaration before '}' token
}
^