+ 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

27th Jun 2018, 4:24 PM
***
10 Respostas
+ 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
27th Jun 2018, 6:31 PM
Arun Tomar
Arun Tomar - avatar
+ 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.
27th Jun 2018, 5:37 PM
***
+ 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?
27th Jun 2018, 7:02 PM
Arun Tomar
Arun Tomar - avatar
+ 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
28th Jun 2018, 5:08 AM
***
+ 5
Rohan Karan run this program in laptop.. and you see your error or bugs
27th Jun 2018, 5:27 PM
Arun Tomar
Arun Tomar - avatar
+ 2
I think this a bug in the compiler
27th Jun 2018, 5:23 PM
Bijit Biswas
Bijit Biswas - avatar
+ 2
if you don't use a laptop/PC, try java N-IDE.
27th Jun 2018, 5:33 PM
Afsc19
Afsc19 - avatar
+ 2
Compiler System bugs, maybe report it.
27th Jun 2018, 5:39 PM
Afsc19
Afsc19 - avatar
+ 2
ya i understood and agreed, as in python intendation is important instead of curly braces. 👍
28th Jun 2018, 3:08 AM
Bijit Biswas
Bijit Biswas - avatar
+ 1
Arun Tomar You are right. That was a bit unusual , just for spaces... 😁😁
27th Jun 2018, 6:55 PM
Bijit Biswas
Bijit Biswas - avatar