划分年龄段并计算占比

#include
using namespace std;
int main()
{
int n;
cin >> n;
int a[100] = { 0 };
for (int i = 0; i < n; i++)
cin >> a[i];
cin.get();
double first=0, second=0, third=0, fourth=0;
for (int j = 0; j < n; j++)
{
if (a[j] <= 18)
first++;
if (19 <= a[j] <= 35)
second++;
if (36 <= a[j] <= 60)
third++;
else
fourth++;
}
cout << "1-18:" << first / n * 100 << "%" << endl;
cout << "19-35:" << second / n * 100 << "%" << endl;
cout << "36-60:" << third / n * 100 << "%" << endl;
cout << "60-:" << fourth / n * 100 << "%" << endl;
return 0;
}

求问各路大神,我的代码哪里出错了呢?
我的input:
5
1 1 88 88 88
我的output:
1-18:40%
19-35:100%
36-60:100%
60-:0%

if (19 <= a[j] <= 35)
->
else if (19 <= a[j]  && a[j]<= 35)

if (36 <= a[j] <= 60)
->
else if (36 <= a[j] && a[j] <= 60)

问题解决的话,请点下采纳