You should always try to fix one error at a time. In this case the problem is with the first error message:
./mario.c: line 3: define: command not found
#define is a directive, not a statement; it must begin with a hash symbol (
#) and it is not terminated by a semicolon (
There is actually nothing wrong with line 4. The compiler is confused because it did not understand line 3, and now it has strange expectations. Once you fix line 3, it will understand the syntax on line 4 as correct.
As @curiouskiwi pointed out, you also don't need
#define here. Generally you would use
#define to create a macro, which substitutes one string of characters for another string of characters when your code is compiled. That can be used to create named constants, custom types, or function-like behavior. You just need a regular variable, which you can declare by putting
int n; after line 5.