Change g++ to gcc for avoiding warnings.
Remove warning: more '%' conversions than data arguments