Recheck your config file, it must have some error, the correct one should like below:
threads = 7
mining-params = pts:av=0&m=1024
mine = xpt2h://username.worker:x@mining.ypool.net:10034:8080:8081:8082:8083:8084:8085:8086:8087/pts
mine = xpt2://PwCSaPgoJZhfmRLLyWbTKQAvCvWoDC4fuD:x@112.124.13.238:28988/pts
#proxy = socks4a://111.111.111.111:1080
compact-stats = 1