Error, typedef found at inner level; check brackets