Language: C++

#include<cstdio>
#include<iostream>
using namespace std;
int main(void){
	double n,min,max,i,a[100],flg[8];
	for(i=0;i<8;i++) flg[i]=0;
	cin>>n;
	for(i=0;i<n;i++) cin>>a[i];
	min=0; max=0;
	for(i=0;i<n;i++){
		if(a[i]<=399&&flg[0]!=1){
			flg[0]=1;
			min++;
		}
		if(a[i]>=400&&a[i]<=799&&flg[1]!=1){
			flg[1]=1;
			min++;
		}
		if(a[i]>=800&&a[i]<=1199&&flg[2]!=1){
			flg[2]=1;
			min++;
		}
		if(a[i]>=1200&&a[i]<=1599&&flg[3]!=1){
			flg[3]=1;
			min++;
		}
		if(a[i]>=1600&&a[i]<=1999&&flg[4]!=1){
			flg[4]=1;
			min++;
		}
		if(a[i]>=2000&&a[i]<=2399&&flg[5]!=1){
			flg[5]=1;
			min++;
		}
		if(a[i]>=2400&&a[i]<=2799&&flg[6]!=1){
			flg[6]=1;
			min++;
		}
		if(a[i]>=2800&&a[i]<=3199&&flg[7]!=1){
			flg[7]=1;
			min++;
		}
		if(a[i]>=3200) max++;
	}
	cout<<min<<' '<<min+max<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:29: error: invalid types 'double [8][double]' for array subscript
    6 |         for(i=0;i<8;i++) flg[i]=0;
      |                             ^
a.cc:8:32: error: invalid types 'double [100][double]' for array subscript
    8 |         for(i=0;i<n;i++) cin>>a[i];
      |                                ^
a.cc:11:21: error: invalid types 'double [100][double]' for array subscript
   11 |                 if(a[i]<=399&&flg[0]!=1){
      |                     ^
a.cc:15:21: error: invalid types 'double [100][double]' for array subscript
   15 |                 if(a[i]>=400&&a[i]<=799&&flg[1]!=1){
      |                     ^
a.cc:15:32: error: invalid types 'double [100][double]' for array subscript
   15 |                 if(a[i]>=400&&a[i]<=799&&flg[1]!=1){
      |                                ^
a.cc:19:21: error: invalid types 'double [100][double]' for array subscript
   19 |                 if(a[i]>=800&&a[i]<=1199&&flg[2]!=1){
      |                     ^
a.cc:19:32: error: invalid types 'double [100][double]' for array subscript
   19 |                 if(a[i]>=800&&a[i]<=1199&&flg[2]!=1){
      |                                ^
a.cc:23:21: error: invalid types 'double [100][double]' for array subscript
   23 |                 if(a[i]>=1200&&a[i]<=1599&&flg[3]!=1){
      |                     ^
a.cc:23:33: error: invalid types 'double [100][double]' for array subscript
   23 |                 if(a[i]>=1200&&a[i]<=1599&&flg[3]!=1){
      |                                 ^
a.cc:27:21: error: invalid types 'double [100][double]' for array subscript
   27 |                 if(a[i]>=1600&&a[i]<=1999&&flg[4]!=1){
      |                     ^
a.cc:27:33: error: invalid types 'double [100][double]' for array subscript
   27 |                 if(a[i]>=1600&&a[i]<=1999&&flg[4]!=1){
      |                                 ^
a.cc:31:21: error: invalid types 'double [100][double]' for array subscript
   31 |                 if(a[i]>=2000&&a[i]<=2399&&flg[5]!=1){
      |                     ^
a.cc:31:33: error: invalid types 'double [100][double]' for array subscript
   31 |                 if(a[i]>=2000&&a[i]<=2399&&flg[5]!=1){
      |                                 ^
a.cc:35:21: error: invalid types 'double [100][double]' for array subscript
   35 |                 if(a[i]>=2400&&a[i]<=2799&&flg[6]!=1){
      |                     ^
a.cc:35:33: error: invalid types 'double [100][double]' for array subscript
   35 |                 if(a[i]>=2400&&a[i]<=2799&&flg[6]!=1){
      |                                 ^
a.cc:39:21: error: invalid types 'double [100][double]' for array subscript
   39 |                 if(a[i]>=2800&&a[i]<=3199&&flg[7]!=1){
      |                     ^
a.cc:39:33: error: invalid types 'double [100][double]' for array subscript
   39 |                 if(a[i]>=2800&&a[i]<=3199&&flg[7]!=1){
      |                                 ^
a.cc:43:21: error: invalid types 'double [100][double]' for array subscript
   43 |                 if(a[i]>=3200) max++;
      |                     ^