'How to define a function on dbfiddle [closed]

I have defined a function in dbfiddle: https://dbfiddle.uk/?rdbms=oracle_21&fiddle=caa911153bd911d9f46894d6ad476bf3

It compile on my computer but not there.

ORA-24344: success with compilation error

my code if the link dies:

CREATE OR REPLACE FUNCTION f (p IN integer)
    RETURN INTEGER
IS
BEGIN
    RETURN 1;
END;


Solution 1:[1]

Thanks to MT0 and JustinCave:

2 Problems: - I forget / at the end of the definition - I forget the keyword CREATE

https://dbfiddle.uk/?rdbms=oracle_21&fiddle=61196249d25348cea6e411fff536b3cf

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Pierre-olivier Gendraud