int ret = ...; // Please declare ret at the same time as you initialize it.