SyntaxFix
Write A Post
Hire A Developer
Questions
move
struct body bodies[n];
to after
struct body { double p[3];//position double v[3];//velocity double a[3];//acceleration double radius; double mass; };
Rest all looks fine.