prog.c:3:1: error: unknown type name 'using'
using namespace std;
^~~~~
prog.c:3:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
using namespace std;
^~~
prog.c: In function 'main':
prog.c:7:5: error: unknown type name 'string'
string x;
^~~~~~
prog.c:8:11: error: 'cin' undeclared (first use in this function)
while(cin>>x){
^~~
prog.c:8:11: note: each undeclared identifier is reported only once for each function it appears in
prog.c:10:24: error: request for member 'length' in something not a structure or union
for(int i=0;i<x.length();i++){
^
prog.c:11:22: error: request for member 'length' in something not a structure or union
re[i]=x[x.length()-i-1];
^
prog.c:13:9: error: 'cout' undeclared (first use in this function)
cout<<atoi(re)<<endl ;
^~~~
prog.c:13:25: error: 'endl' undeclared (first use in this function)
cout<<atoi(re)<<endl ;
^~~~