0_0_30016700_6135.cpp: In function 'int main()': 0_0_30016700_6135.cpp:66:37: error: operands to ?: have different types 'char' and 'const char*' cout << f[i] << (i == n ? endl : " "); ^