This code is giving me this error, which I don\'t understand. I can\'t even run the program. Can you help me to fix this error, please? If you don\'t understand anything in the
You are calling CancelarPedido before you declared it. You need to reorder the code or add a forward declaration for CancelarPedido.
Without a declaration of CancelarPedido in scope, it defaults to int CancelarPedido(). You get the error message because lista is declared to be a pointer but CancelarPedido is declared to return an int.