Distributed Optimization with Inexact Oracle