prog.c:1:1: error: unknown type name ‘using’
using namespace std;
^~~~~
prog.c:1:17: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘std’
using namespace std;
^~~
prog.c:5:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
main()
^~~~
prog.c: In function ‘main’:
prog.c:21:2: error: ‘cout’ undeclared (first use in this function)
cout<<"introduzca valor (1-7)"<<endl;
^~~~
prog.c:21:2: note: each undeclared identifier is reported only once for each function it appears in
prog.c:21:34: error: ‘endl’ undeclared (first use in this function)
cout<<"introduzca valor (1-7)"<<endl;
^~~~
prog.c:23:2: error: ‘cin’ undeclared (first use in this function)
cin>>valor;
^~~