Main.cc: In function 'int main()':
Main.cc:11:24: error: invalid operands of types 'int' and 'const char [2]' to binary 'operator<<'
cout << a[a[a[i]] << " ";
^
Main.cc:11:27: error: expected ']' before ';' token
cout << a[a[a[i]] << " ";
^