Prime visits assignment problem

this is my code https://ide.codingblocks.com/s/82827
works fine with other ide’s but not on coding blocks.
reply soon.