+ 7
[Solved] Compilation Error for the following code. Why ???
This a kind of pattern using loops. It works fine in other compilers. But the SL compiler is unable to compile the code. Is this a bug or any exception ??? I just want to know the reason behind it. https://code.sololearn.com/cFTBQ0aIcnNI/?ref=app
10 Réponses
+ 9
Rohan Karan
you did so little mistakes here..
....
and your problem is spaces..
bro..
you give spaces so much time
in between
everything
like
for... and so many places you not want to give..
https://code.sololearn.com/cV0PI0figudQ/?ref=app
see your self
+ 9
Arun Tomar Afsc19 I said the code works fine in other compilers and IDEs except SoloLearn. I just wanna know why this code is unable to be compiled by SL compiler.
+ 7
Bijit Biswas
As you know that..
any technology in the world take
input as a string
&
give output as a string
so
our sololearn compiler convert into byte code send the data to run at jvm
so space is there and space has a ASCII value..
that why give an error..
that my point to see why space give us so much problem here..???
what you say?
+ 7
Thanks Arun Tomar, I've fixed the problem. But I guess SL compiler needs to be updated because other compiler is able to compile the code despite the wrong spaces around the curly braces.
Here's the new code :
https://code.sololearn.com/c4fG5M4hKvv1/?ref=app
+ 5
Rohan Karan
run this program in laptop..
and you see your error or bugs
+ 2
I think this a bug in the compiler
+ 2
if you don't use a laptop/PC, try java N-IDE.
+ 2
Compiler System bugs, maybe report it.
+ 2
ya i understood and agreed, as in python intendation is important instead of curly braces. 👍
+ 1
Arun Tomar You are right. That was a bit unusual , just for spaces... 😁😁