Language: C

    #include<stdio.h>                                                                               
    int main(){                                                                                     
        int N,L,sum = 0;                                                        
        int a[200];                                                                             
        int b[200];                                                                               
                                                                                                    
        scanf("%d%d",&N,&L);                                                                        
                                                                                                    
        for(int i = 1;i <= N;i++){                                                                  
            a[i-1] = L + i - 1;                                                                 
        }                                                                                           
                                                                                                    
        for(int i = 0;i < N; i++){                                                                  
            b[i] = (0 - a[i])*(0 - a[i]);                                                 
                                                                                      
                                                                                                    
        int less = 10000;
        int less_n                                                                      
            if(less > b[i]){                                                                      
                less = b[i];                                                                      
                less_n = i;                                                                         
            }                                                                                       
        }                                                                                           
                                                                                                    
        for(int i = 0; i < N; i++){                                                                 
            if(i != less_n){                                                                        
                sum+=a[i];                                                                      
            }                                                                                       
        }                                                                                           
        printf("%d\n",sum);                                                                         
        return 0;                                                                                   
    }      

Compiler output:
main.c: In function 'main':
main.c:19:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'if'
   19 |             if(less > b[i]){
      |             ^~
main.c:21:17: error: 'less_n' undeclared (first use in this function); did you mean 'less'?
   21 |                 less_n = i;
      |                 ^~~~~~
      |                 less
main.c:21:17: note: each undeclared identifier is reported only once for each function it appears in