I wanted to know why you are causing the error:
Error converting 'int' to 'int *'
This program is only for training the use of pointers in parameters.
void teste(int *t){
*t = 50;
}
int main(){
int x = 10;
cout << "Sem usar o metodo com ponteiro: " << x << endl;
teste(x);
cout << "Usando o metodo com ponteiro: " << x << endl;
return 0;
}