Add missing variables declaration.
The build was successful.
Details
The build was successful.
Details
This commit is contained in:
parent
eef5ee370d
commit
2bda002259
|
@ -8,6 +8,8 @@ class Program {
|
||||||
'X' => 10, 'IX' => 9, 'V' => 5, 'IV' => 4, 'I' => 1};
|
'X' => 10, 'IX' => 9, 'V' => 5, 'IV' => 4, 'I' => 1};
|
||||||
|
|
||||||
int $matches;
|
int $matches;
|
||||||
|
string $roman;
|
||||||
|
int $value;
|
||||||
foreach($lookup as $roman => $value) {
|
foreach($lookup as $roman => $value) {
|
||||||
$matches = (int) ($n / $value);
|
$matches = (int) ($n / $value);
|
||||||
$result += str_repeat($roman, $matches);
|
$result += str_repeat($roman, $matches);
|
||||||
|
|
Loading…
Reference in New Issue