File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed
Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -34,13 +34,21 @@ Why i did it? Because I was bored. Why does this language exists in the first pl
3434
3535# ERRORS
3636If it doesn't work, depending on the exit it can be the following:
37+
37380 - No problems on the code, have you checked that it's well written?
39+
38401 - There is an unfinished loop.
41+
39422 - You are trying to access a negative cell position.
43+
40443 - 1 & 2.
45+
41464 - Not enough input or not input at all.
47+
42485 - 1 & 4
49+
43506 - 2 & 4
51+
44527 - 1 & 2 & 4
4553
4654# TODO
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ def checkErrors(source, argv):
4747
4848 if clStat < 0 :
4949 err += 2
50-
50+
5151 if len (argv ) < 3 and getInp != 0 :
5252 err += 4
5353 try :
@@ -60,7 +60,6 @@ def checkErrors(source, argv):
6060 print (f"\n Code returned { err } ." )
6161 exit (err )
6262
63-
6463# Calcula el numero necesario de celdas
6564# para que el programa funcione correctamente
6665# usando el minimo numero de recursos.
@@ -73,7 +72,7 @@ def getCells(source):
7372 num -= 1
7473 if num > cells :
7574 cells = num
76- return cells + 2
75+ return cells
7776
7877
7978# Obtiene el input y se lo mete a 'stdin'
@@ -95,10 +94,9 @@ def getCells(source):
9594# Le agrega el numero necesario de celdas necesarias + 2,
9695# para situaciones inesperadas
9796cells = []
98- for i in range (getCells (source )):
97+ for i in range (getCells (source ) + 2 ):
9998 cells .append (0 )
10099
101-
102100# Interpretador.
103101while prgPos != len (source ):
104102 # Le da el valor de la instruccion a 'obj'
You can’t perform that action at this time.
0 commit comments