Language: C

#include <stdio.h>                                                                                                                                                                                          
                                                                                                                                                                                                            
void change(int *color, int a){                                                                                                                                                                             
  if (1 <= a && a <= 399){                                                                                                                                                                                  
    color[0] = 1;                                                                                                                                                                                           
  } else if(400 <= a && a <= 799){                                                                                                                                                                          
    color[1] = 1;                                                                                                                                                                                           
  } else if(800 <= a && a <= 1199){                                                                                                                                                                         
    color[2] = 1;                                                                                                                                                                                           
  } else if(1200 <= a && a <= 1599){                                                                                                                                                                        
    color[3] = 1;                                                                                                                                                                                           
  } else if(1600 <= a && a <= 1999){                                                                                                                                                                        
    color[4] = 1;                                                                                                                                                                                           
  } else if(2000 <= a && a <= 2399){                                                                                                                                                                        
    color[5] = 1;                                                                                                                                                                                           
  } else if(2400 <= a && a <= 2799){                                                                                                                                                                        
    color[6] = 1;                                                                                                                                                                                           
  } else if(2800 <= a && a <= 3199){                                                                                                                                                                        
    color[7] = 1;                                                                                                                                                                                           
  }                                                                                                                                                                                                         
}                                                                                                                                                                                                           
                                                                                                                                                                                                            
int main(void){                                                                                                                                                                                             
  int a[100], n, i, color[8] = {0,0,0,0,0,0,0,0}, max=0, min=0;                                                                                                                                             
  scanf("%d", &n);                                                                                                                                                                                          
  for (int i=0; i<n; ++i){                                                                                                                                                                                  
    scanf("%d", &a[i]);                                                                                                                                                                                     
  }                                                                                                                                                                                                         
  for (int i=0; i<n; ++i){                                                                                                                                                                                  
    change(color, a[i]);                                                                                                                                                                                    
    if (a[i]>=3200){                                                                                                                                                                                        
      max += 1;                                                                                                                                                                                             
    }                                                                                                                                                                                                       
  }                                                                                                                                                                                                         
  for (int i=0; i<8; ++i){                                                                                                                                                                                  
    if (color[i] == 1){                                                                                                                                                                                     
      max += 1;                                                                                                                                                                                             
      min += 1;                                                                                                                                                                                             
    }                                                                                                                                                                                                       
  }                                                                                                                                                                                                         
  if (max >= 8){                                                                                                                                                                                            
    max = 8;                                                                                                                                                                                                
  }                                                                                                                                                                                                         
  if (min == 0){                                                                                                                                                                                            
    min = 1;                                                                                                                                                                                                
  printf("%d %d\n", min, max);                                                                                                                                                                              
  return 0;                                                                                                                                                                                                 
}              

Compiler output:
main.c: In function 'main':
main.c:48:1: error: expected declaration or statement at end of input
   48 | }
      | ^