Main.cc: In function ‘int main()’: Main.cc:11:2: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] if(x>0.5);{ ^~ Main.cc:11:12: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ if(x>0.5);{ ^ Main.cc: In function ‘int main()’: Main.cc:23:5: error: redefinition of ‘int main()’ int main(){ ^~~~ Main.cc:4:5: note: ‘int main()’ previously defined here int main(){ ^~~~ Main.cc:30:2: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] if(x>0.5);{ ^~ Main.cc:30:12: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ if(x>0.5);{ ^