Your blockDecodeSyndromeMethod is trying to call DecodeSyndromeMethod with more inputs than DecodeSyndromeMethod wants.
However, we as outside people have no idea what the code for DecodeSyndromeMethod is. It appears to be something you were provided with as part of an assignment.
According to the comments in the blockDecodeSyndromeMethod,
which implies that you should be able to pass three parameters.
But right after that the comments say
If the SyndromeTable is generated internally if H is provided as the first parameter, then it seems strange that there would be a syntax that permitted passing both H and SyndromeTable . It would seem more likely that the two supported syntaxes were
You were told that three parameters can be passed but the code provided by the instructors is rejecting three parameters. That is not your fault: you should inform the instructors that their code does not function properly.
But in the meantime, the workaround is probably to call DecodeSyndromeMethod( H, Received )