- Output for 5.5.24 - 5.5.30, 5.6.8 - 5.6.16
- Parse error: syntax error, unexpected end of file in /in/QZu3b on line 21
Process exited with code 255.
<?php
function giveGaps($a,$k) {
$cap = 9999;
$gap = array();
$count = 0; # Lücken im Array
for($i = 0; $i < lengthOf($a); $i++) {
for($j = 0; $j ; $j++) {
# Lücken: $a[$i] -> Cap
$gap[$j] = $a[$i]++;
# Lücken 0 -> $a[$i+1]
if( ($a[$i]%$cap < $a[$i+1]) )
$gap[$j] = $a[$i]%$cap++;
}
}
foreach($gap as $ptr) { print $ptr; }
} giveGaps(array(9998,3),0)