wrong_arity_function.m:034: In clause for predicate `main'/2: wrong_arity_function.m:034: error: wrong number of arguments (5; should be 1 wrong_arity_function.m:034: or 2) in use of constructor `f'. wrong_arity_function.m:034: If you are trying to construct a closure wrong_arity_function.m:034: containing `f', you cannot do so with 5 wrong_arity_function.m:034: arguments: the predicates with this name have wrong_arity_function.m:034: arities 3 and 4, and the only function with this wrong_arity_function.m:034: name has arity 2.