diff options
| author | cassiopc <cassiopc@gmail.com> | 2015-11-13 11:32:29 +0000 |
|---|---|---|
| committer | cassiopc <cassiopc@gmail.com> | 2015-11-13 11:32:29 +0000 |
| commit | 6ed4232421c788aec6c4a014ff8ab6068135d66e (patch) | |
| tree | 9127907d673011e442ece56ea085abb5b539c936 /src | |
| parent | 1443feed49a9d703701448aadca4e419eb938930 (diff) | |
| download | boca-6ed4232421c788aec6c4a014ff8ab6068135d66e.tar.gz boca-6ed4232421c788aec6c4a014ff8ab6068135d66e.zip | |
minor fixes
Diffstat (limited to 'src')
| -rw-r--r-- | src/fcontest.php | 11 | ||||
| -rwxr-xr-x | src/private/autojudging.php | 3 |
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) ." ". |