Main.cc: In function 'double gj(int)': Main.cc:9:3: error: 'monte' was not declared in this scope monte=zs/70*0.1; ^ Main.cc:11:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^