diff --git a/PBot/VERSION.pm b/PBot/VERSION.pm index 37c1fc1d..605d88cb 100644 --- a/PBot/VERSION.pm +++ b/PBot/VERSION.pm @@ -13,7 +13,7 @@ use warnings; # These are set automatically by the build/commit script use constant { BUILD_NAME => "PBot", - BUILD_REVISION => 217, + BUILD_REVISION => 218, BUILD_DATE => "2010-06-29", }; diff --git a/modules/codepad.pl b/modules/codepad.pl index 0e22d95a..3bdbdf37 100755 --- a/modules/codepad.pl +++ b/modules/codepad.pl @@ -87,9 +87,9 @@ if($lang eq "C" or $lang eq "C++") { $precode =~ s/\s+$//; if(not $has_main) { - $code = "$prelude\n\n$code\n\nint main(int argc, char **argv) { $precode return 0;}\n"; + $code = "$prelude\n\n$code\n\nint main(int argc, char **argv) { $precode\n;\n return 0;}\n"; } else { - $code = "$prelude\n\n$code\n\n$precode\n"; + $code = "$prelude\n\n$precode\n\n$code\n"; } } else { $code = $precode; diff --git a/modules/ideone.pl b/modules/ideone.pl index ff363c9e..030d3b08 100755 --- a/modules/ideone.pl +++ b/modules/ideone.pl @@ -569,7 +569,7 @@ if($languages{$lang}{'id'} == 1 or $languages{$lang}{'id'} == 11 or $languages{$ $precode =~ s/\s+$//; if(not $has_main) { - $code = "$prelude\n\n$code\n\nint main(int argc, char **argv) { $precode return 0;}\n"; + $code = "$prelude\n\n$code\n\nint main(int argc, char **argv) { $precode\n;\n return 0;}\n"; $nooutput = "Success [no output]."; } else { $code = "$prelude\n\n$precode\n\n$code\n";