-4
#include <iostream>
#include <string>
struct Brinquedos{
enum Objetos {Bola, Carrinho, Caixa, Dinamite};
void func(int st_Bola, int st_Carrinho, int st_Caixa, int st_Dinamite){
Bola=st_Bola;
Carrinho=st_Carrinho;
Caixa=st_Caixa;
Dinamite=st_Dinamite;
}
};
int main(){
Brinquedos Insere;
Brinquedos Mostra;
Insere.func(10,9,15,25);
std::cout << Mostra.Bola << Mostra.Carrinho << Mostra.Caixa << Mostra.Dinamite;
}
The error is as follows:
In Member Function 'void Toys::func(int, int, int, int)': 11:12: error: lvalue required as left operand of assignment 12:16: error: lvalue required as left operand of assignment 13:13: error: lvalue required as left operand of assignment 14:16: error: lvalue required as left operand of assignment