aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fcontest.php11
-rwxr-xr-xsrc/private/autojudging.php3
2 files changed, 6 insertions, 8 deletions
diff --git a/src/fcontest.php b/src/fcontest.php
index 0bbe94e..0bd14f0 100644
--- a/src/fcontest.php
+++ b/src/fcontest.php
@@ -15,8 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
////////////////////////////////////////////////////////////////////////////////
-//Last updated 26/oct/2014 by cassio@ime.usp.br
-// inclusion of default extra language C++11
+//Last updated 11/nov/2015 by cassio@ime.usp.br
//
function DBDropContestTable() {
$c = DBConnect();
@@ -991,10 +990,10 @@ function insertlanguages($n,$c=null) {
$param['name']='Java';
$param['extension']='java';
DBNewLanguage($n, $param, $c);
- $param['number']=4;
- $param['name']='C++11';
- $param['extension']='cc';
- DBNewLanguage($n, $param, $c);
+// $param['number']=4;
+// $param['name']='C++11';
+// $param['extension']='cc';
+// DBNewLanguage($n, $param, $c);
}
function insertanswers($n,$c) {
DBExec($c, "insert into answertable (contestnumber, answernumber, runanswer, yes, fake) values ".
diff --git a/src/private/autojudging.php b/src/private/autojudging.php
index 4f8d72e..cbdc1ec 100755
--- a/src/private/autojudging.php
+++ b/src/private/autojudging.php
@@ -387,7 +387,7 @@ if($retval != 0) {
DBGiveUpRunAutojudging($contest, $site, $number, $ip, "warning: problem package has no input files");
continue;
} else {
- $errp=0;
+ $errp=0; $ncor=0;
foreach($inputlist as $file) {
$file = basename($file);
if(is_file($dir . $ds . "input" . $ds . $file)) {
@@ -456,7 +456,6 @@ if($retval != 0) {
$answer = "(WHILE RUNNING) " . $answer;
break;
}
- $ncor = 0;
if(is_file($dir . $ds . 'output' . $ds . $file)) {
@unlink($dir . $ds . 'compout');
$ex = escapeshellcmd($scriptcomp) ." ".