Program doesn't work in Ideone or codepad.