Prolog is a case-sensitive language and a variable name has to be character sequence made by letters, digits and underscore characters and has to begin with an uppercase letter or underscore character.
Therefore,
add(Num1, Num2, Output) :-
Output is Num1 + Num2.
would work.