I have a problem with this code and I don't know how to solve it

#include <Adafruit_NeoPixel.h>
#ifdef __AVR__
#include <avr/power.h> // Required for 16 MHz Adafruit Trinket
#endif
#define PIN        2 // On Trinket or Gemma, suggest changing this to 1
#define NUMPIXELS 33 // Popular NeoPixel ring sizeç

//MOTOR
#include <AccelStepper.h>           // Load the AccelStepper library
#define motorPin1  5                // IN1 pin on the ULN2003A driver
#define motorPin2  4                // IN2 pin on the ULN2003A driver
#define motorPin3  0               // IN3 pin on the ULN2003A driver
#define motorPin4  2
#define degToSteps 360
int stepsPerRevolution = 64;        // steps per revolution
float degreePerRevolution = 5.625;  // degree per revolution
AccelStepper stepper(AccelStepper::HALF4WIRE, motorPin1, motorPin3, motorPin2, motorPin4);

//LUCES
Adafruit_NeoPixel pixels(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800);

#define DELAYVAL 500 // Time (in milliseconds) to pause between pixels

void setup() {
  //MOTOR
   Serial.begin(9600);               // initialise the serial monitor
  stepper.setMaxSpeed(1000.0);      // set the max motor speed
  stepper.setAcceleration(100.0);   // set the acceleration
  stepper.setSpeed(200);            // set the current speed
  stepper.moveTo(degToSteps(360));
  
 //LUCES
#if defined(__AVR_ATtiny85__) && (F_CPU == 16000000)
  clock_prescale_set(clock_div_1);
#endif
 
  pixels.begin(); // INITIALIZE NeoPixel strip object (REQUIRED)
}

void loop() {
  stepper.run();
  
  for(int i=0; i<NUMPIXELS; i++) { // For each pixel...

  
    pixels.setPixelColor(i, pixels.Color(255, 0, 0));

    pixels.show();   // Send the updated pixel colors to the hardware.

    delay(DELAYVAL); // Pause before next pass through loop
  }
  float degToSteps(float deg) {
  return (stepsPerRevolution / degreePerRevolution) * deg;
  }
}

C:\Users\moha\Documents\Arduino\sketch_nov19a\sketch_nov19a.ino: In function 'void setup()':
sketch_nov19a:30:32: error: expression cannot be used as a function
30 | stepper.moveTo(degToSteps(360));
| ^
C:\Users\moha\Documents\Arduino\sketch_nov19a\sketch_nov19a.ino: In function 'void loop()':
sketch_nov19a:14:20: error: expected unqualified-id before numeric constant
14 | #define degToSteps 360
| ^~~
C:\Users\moha\Documents\Arduino\sketch_nov19a\sketch_nov19a.ino:51:9: note: in expansion of macro 'degToSteps'
51 | float degToSteps(float deg) {
| ^~~~~~~~~~
exit status 1
expression cannot be used as a function

This ``#define degToSteps 360``` is not a function.

This stepper.moveTo(degToSteps(360)); is wrong. degToSteps has already been defined as referencing the number 360 and only needs this to work stepper.moveTo( degToSteps );```

Use words like "c++ define directive" in a search thingy to learn more about using #define.

I have done it but I get this

Include the entire error message. It is easy to do. There is a button (lower right of the IDE window) called "copy error message". Copy the error and paste into a post in code tags. Paraphrasing the error message leaves out important information.

When you change your code. post, in a new message, your changed code. Afterall, I cannot see your code. If I cannot see your code I cannot see the errors. Right?

#include <Adafruit_NeoPixel.h>
#ifdef __AVR__
#include <avr/power.h> // Required for 16 MHz Adafruit Trinket
#endif
#define PIN        2 // On Trinket or Gemma, suggest changing this to 1
#define NUMPIXELS 33 // Popular NeoPixel ring sizeç

//MOTOR
#include <AccelStepper.h>           // Load the AccelStepper library
#define motorPin1  5                // IN1 pin on the ULN2003A driver
#define motorPin2  4                // IN2 pin on the ULN2003A driver
#define motorPin3  0               // IN3 pin on the ULN2003A driver
#define motorPin4  2
#define degToSteps 360
int stepsPerRevolution = 64;        // steps per revolution
float degreePerRevolution = 5.625;  // degree per revolution
AccelStepper stepper(AccelStepper::HALF4WIRE, motorPin1, motorPin3, motorPin2, motorPin4);

//LUCES
Adafruit_NeoPixel pixels(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800);

#define DELAYVAL 500 // Time (in milliseconds) to pause between pixels

void setup() {
  //MOTOR
   Serial.begin(9600);               // initialise the serial monitor
  stepper.setMaxSpeed(1000.0);      // set the max motor speed
  stepper.setAcceleration(100.0);   // set the acceleration
  stepper.setSpeed(200);            // set the current speed
  stepper.moveTo(degToSteps);
  
 //LUCES
#if defined(__AVR_ATtiny85__) && (F_CPU == 16000000)
  clock_prescale_set(clock_div_1);
#endif
 
  pixels.begin(); // INITIALIZE NeoPixel strip object (REQUIRED)
}

void loop() {
  stepper.run();
  
  for(int i=0; i<NUMPIXELS; i++) { // For each pixel...

  
    pixels.setPixelColor(i, pixels.Color(255, 0, 0));

    pixels.show();   // Send the updated pixel colors to the hardware.

    delay(DELAYVAL); // Pause before next pass through loop
  }
  float degToSteps(float deg) {
  return (stepsPerRevolution / degreePerRevolution) * deg;
  }
}

Arduino:1.8.19 (Windows 10), Tarjeta:"Generic ESP8266 Module, 80 MHz, Flash, Disabled (new aborts on oom), Disabled, All SSL ciphers (most compatible), 32KB cache + 32KB IRAM (balanced), Use pgm_read macros for IRAM/PROGMEM, dtr (aka nodemcu), 26 MHz, 40MHz, DOUT (compatible), 1MB (FS:64KB OTA:~470KB), 2, nonos-sdk 2.2.1+100 (190703), v2 Lower Memory, Disabled, None, Only Sketch, 115200"

C:\Users\moha\Documents\Arduino\luz_y_motor\luz_y_motor.ino: In function 'void loop()':

luz_y_motor:14:20: error: expected unqualified-id before numeric constant

14 | #define degToSteps 360

  |                    ^~~

C:\Users\moha\Documents\Arduino\luz_y_motor\luz_y_motor.ino:52:9: note: in expansion of macro 'degToSteps'

52 | float degToSteps(float deg) {

  |         ^~~~~~~~~~

exit status 1

expected unqualified-id before numeric constant

Este informe podría contener más información con
"Mostrar salida detallada durante la compilación"
opción habilitada en Archivo -> Preferencias.

your function declared inside of loop()

You must declare degToSteps only once - either as #define or as function and not both

And when you move the function float degToSteps(float deg) outside loop() you will find that using 2 things with the same name will give an error.

you can't have

#define degToSteps 360

float degToSteps(float deg) {
  return (stepsPerRevolution / degreePerRevolution) * deg;
  }

in the same sketch.

The OP should go do a tutor thingy to learn some basics.

And pick one use either floats or ints.

Take a look into this tutorial:

Arduino Programming Course

It is easy to understand and has a good mixture between explaining important concepts and example-codes to get you going. So give it a try and report your opinion about this tutorial.

Make experienced users help: two ways to quickly post code as a code-section