/in/foo.cc: In function 'int main()':
/in/foo.cc:19:38: error: no match for 'operator=' (operand types are 'std::basic_ostream<char>' and 'char')
if(a[i]!='\n') cout<<a[i]=z[a[i]-64];
^
In file included from /usr/include/c++/6/istream:39:0,
from /usr/include/c++/6/sstream:38,
from /usr/include/c++/6/complex:45,
from /usr/include/c++/6/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
from /in/foo.cc:1:
/usr/include/c++/6/ostream:402:7: note: candidate: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator=(std::basic_ostream<_CharT, _Traits>&&) [with _CharT = char; _Traits = std::char_traits<char>]
operator=(basic_ostream&& __rhs)
^~~~~~~~
/usr/include/c++/6/ostream:402:7: note: no known conversion for argument 1 from 'char' to 'std::basic_ostream<char>&&'