Language: C++

#include<bits/stdc++.h>
#include<string>
using namespace std;
int main(){
    char s;
    cin >> s;
    cout << s[0]+s[1]+s[2]+s[3]+s[4] << " " << s[5]+s[6]+s[7]+s[8]+s[9]+s[10]+s[11] << " " << s[12]+s[13]+s[14]+s[15]+s[16] << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: invalid types 'char[int]' for array subscript
    7 |     cout << s[0]+s[1]+s[2]+s[3]+s[4] << " " << s[5]+s[6]+s[7]+s[8]+s[9]+s[10]+s[11] << " " << s[12]+s[13]+s[14]+s[15]+s[16] << endl;
      |              ^
a.cc:7:19: error: invalid types 'char[int]' for array subscript
    7 |     cout << s[0]+s[1]+s[2]+s[3]+s[4] << " " << s[5]+s[6]+s[7]+s[8]+s[9]+s[10]+s[11] << " " << s[12]+s[13]+s[14]+s[15]+s[16] << endl;
      |                   ^
a.cc:7:24: error: invalid types 'char[int]' for array subscript
    7 |     cout << s[0]+s[1]+s[2]+s[3]+s[4] << " " << s[5]+s[6]+s[7]+s[8]+s[9]+s[10]+s[11] << " " << s[12]+s[13]+s[14]+s[15]+s[16] << endl;
      |                        ^
a.cc:7:29: error: invalid types 'char[int]' for array subscript
    7 |     cout << s[0]+s[1]+s[2]+s[3]+s[4] << " " << s[5]+s[6]+s[7]+s[8]+s[9]+s[10]+s[11] << " " << s[12]+s[13]+s[14]+s[15]+s[16] << endl;
      |                             ^
a.cc:7:34: error: invalid types 'char[int]' for array subscript
    7 |     cout << s[0]+s[1]+s[2]+s[3]+s[4] << " " << s[5]+s[6]+s[7]+s[8]+s[9]+s[10]+s[11] << " " << s[12]+s[13]+s[14]+s[15]+s[16] << endl;
      |                                  ^
a.cc:7:49: error: invalid types 'char[int]' for array subscript
    7 |     cout << s[0]+s[1]+s[2]+s[3]+s[4] << " " << s[5]+s[6]+s[7]+s[8]+s[9]+s[10]+s[11] << " " << s[12]+s[13]+s[14]+s[15]+s[16] << endl;
      |                                                 ^
a.cc:7:54: error: invalid types 'char[int]' for array subscript
    7 |     cout << s[0]+s[1]+s[2]+s[3]+s[4] << " " << s[5]+s[6]+s[7]+s[8]+s[9]+s[10]+s[11] << " " << s[12]+s[13]+s[14]+s[15]+s[16] << endl;
      |                                                      ^
a.cc:7:59: error: invalid types 'char[int]' for array subscript
    7 |     cout << s[0]+s[1]+s[2]+s[3]+s[4] << " " << s[5]+s[6]+s[7]+s[8]+s[9]+s[10]+s[11] << " " << s[12]+s[13]+s[14]+s[15]+s[16] << endl;
      |                                                           ^
a.cc:7:64: error: invalid types 'char[int]' for array subscript
    7 |     cout << s[0]+s[1]+s[2]+s[3]+s[4] << " " << s[5]+s[6]+s[7]+s[8]+s[9]+s[10]+s[11] << " " << s[12]+s[13]+s[14]+s[15]+s[16] << endl;
      |                                                                ^
a.cc:7:69: error: invalid types 'char[int]' for array subscript
    7 |     cout << s[0]+s[1]+s[2]+s[3]+s[4] << " " << s[5]+s[6]+s[7]+s[8]+s[9]+s[10]+s[11] << " " << s[12]+s[13]+s[14]+s[15]+s[16] << endl;
      |                                                                     ^
a.cc:7:74: error: invalid types 'char[int]' for array subscript
    7 |     cout << s[0]+s[1]+s[2]+s[3]+s[4] << " " << s[5]+s[6]+s[7]+s[8]+s[9]+s[10]+s[11] << " " << s[12]+s[13]+s[14]+s[15]+s[16] << endl;
      |                                                                          ^
a.cc:7:80: error: invalid types 'char[int]' for array subscript
    7 |     cout << s[0]+s[1]+s[2]+s[3]+s[4] << " " << s[5]+s[6]+s[7]+s[8]+s[9]+s[10]+s[11] << " " << s[12]+s[13]+s[14]+s[15]+s[16] << endl;
      |                                                                                ^
a.cc:7:96: error: invalid types 'char[int]' for array subscript
    7 |     cout << s[0]+s[1]+s[2]+s[3]+s[4] << " " << s[5]+s[6]+s[7]+s[8]+s[9]+s[10]+s[11] << " " << s[12]+s[13]+s[14]+s[15]+s[16] << endl;
      |                                                                                                ^
a.cc:7:102: error: invalid types 'char[int]' for array subscript
    7 |     cout << s[0]+s[1]+s[2]+s[3]+s[4] << " " << s[5]+s[6]+s[7]+s[8]+s[9]+s[10]+s[11] << " " << s[12]+s[13]+s[14]+s[15]+s[16] << endl;
      |                                                                                                      ^
a.cc:7:108: error: invalid types 'char[int]' for array subscript
    7 |     cout << s[0]+s[1]+s[2]+s[3]+s[4] << " " << s[5]+s[6]+s[7]+s[8]+s[9]+s[10]+s[11] << " " << s[12]+s[13]+s[14]+s[15]+s[16] << endl;
      |                                                                                                            ^
a.cc:7:114: error: invalid types 'char[int]' for array subscript
    7 |     cout << s[0]+s[1]+s[2]+s[3]+s[4] << " " << s[5]+s[6]+s[7]+s[8]+s[9]+s[10]+s[11] << " " << s[12]+s[13]+s[14]+s[15]+s[16] << endl;
      |                                                                                                                  ^
a.cc:7:120: error: invalid types 'char[int]' for array subscript
    7 |     cout << s[0]+s[1]+s[2]+s[3]+s[4] << " " << s[5]+s[6]+s[7]+s[8]+s[9]+s[10]+s[11] << " " << s[12]+s[13]+s[14]+s[15]+s[16] << endl;
      |                                                                                                                        ^