Can't do the Lucians Luscious Lasagna

Hello! I have 2 errors:

LuciansLusciousLasagna.cs(26,1): error CS8803: Top-level statements must precede namespace and type declarations.
LuciansLusciousLasagna.cs(26,1): error CS8805: Program using top-level statements must be an executable.

How can I fix it? I don’t understand.

Remove the code you have on lines from 26 to 31.

Your task is to define the Lasagna class, and that’s it. Do not try to create instances of it in your solution code - the test code does that for you.

1 Like