You forgot #include<string>
. You cannot use strings without it. Also do you want 'cod' to only take one character? Because a character can only hold one number/letter/special character. If you want it to hold more than one character than you need to declare it as string. Or you could declare more than one variable for each character you type on that line. Anyways I updated your code, and it worked fine for me.
#include <iostream>
#include<string>
using namespace std;
int main()
{
char cod; //If you want more than one character declare it as string or
// create multiple char variables to store the multiple
// variables in
string colour,material;
float abs,ord,r;
cout<<" CODUL : "; cin>>cod;
cout<<"\nCOLOUR : "; cin>>colour;
cout<<"\nMATERIAL : "; cin>>material;
cout<<"\nABSISA : "; cin>>abs;
cout<<"\nORDONATA : "; cin>>ord;
cout<<"\nRAZA : "; cin>>r;
system("pause");
return 0;
}
EDIT #1
Just an updated piece of code showing how to enter multiple different char and they all get stored in multiple variables. The below code was tested and works correctly. Assuming this is what you are looking for.
#include <iostream>
#include<string>
using namespace std;
int main()
{
char cod, cod_1, cod_2, cod_3; //If you want more than one character inputted for cod then //declare it as string or
// create multiple char variables to store the multiple
// variables in
string colour,material;
float abs,ord,r;
cout<<" CODUL : "; cin>> cod >> cod_1 >> cod_2 >> cod_3;
cout<<"\nCOLOUR : "; cin>>colour;
cout<<"\nMATERIAL : "; cin>>material;
cout<<"\nABSISA : "; cin>>abs;
cout<<"\nORDONATA : "; cin>>ord;
cout<<"\nRAZA : "; cin>>r;
system("pause");
return 0;
}