Main.cc: In function 'int main()': Main.cc:7:21: error: cast from 'const char*' to 'char' loses precision [-fpermissive] cout<char("a"+i-1)<<" "; ^