Main.cc: In function 'int main()': Main.cc:10:13: error: invalid operands of types '__gnu_cxx::__alloc_traits >::value_type {aka char}' and 'const char [2]' to binary 'operator-' a[j]=n[i]-"0"; ^