Black lines/shadow in Cycles f12 render but not in viewport render?
If the number of subdivisions for view and render is not the same you'll get different results when using the subsurf modifier.

Make those values the same.



Additionally, you might need to enable smooth shading.