Help me in solving DSAAGP08 problem

My issue

i have write the correct bbut error are generated

My code

#include <stdio.h>

int main(){
    

int arr[100] = {2, 4, 6, 8, 10};
int size =5;

int positionToDeleate =2;

for (int i = positionToDeleate; i < size - 1; i++) {
    arr[i] = arr[i + 1];
}

size--;


for (int i = 0; i < size; i++)
printf("%d  ", arr[i]);

}
return 0 ; 

}

Learning course: Data Structures & Algorithms using C
Problem Link: Deletion from an array in Data Structures & Algorithms using C