0 Towely 7 Years Ago I'm getting the error message "Error: expected initializer before 'sum' " from line 9 of my code when I try to compile my program. I can't seem to figure out why it would be throwing this error. Any help would be great. Thanks! #include <iostream> using namespace std; struct Frac; { int numerator; int denominator; } Frac sum(Frac& fract1, const Frac& fract2); Frac Sub(Frac& fract1, const Frac& fract2); Frac Mul(Frac& fract1, const Frac& fract2); Frac Div(Frac& fract1, const Frac& fract2); c++ Edited 7 Years Ago by Towely: n/a

1 Featured Reply c++sux 1 7 Years Ago haha common error!! You forgot the semicolon on line 8 after the } Structs always have a semicolon after the last bracket so add the semicolon on line 8 }; Votes + Comments Towely: Thanks duder