0

Help on Squares

I wrote this for a problem im casually doing on kattis. I'm not sure what I'm doing wrong. Any input would be helpful. also, why will it not run on here? is it too big? I copied and pasted from my computer to email to here. thanks :) I am unsure if this section can be used for this kind of discussion, so if not I apologize. https://code.sololearn.com/cOsI8xzk84KI/?ref=app

26th Jan 2018, 12:32 AM
Taylor Schwartz
Taylor Schwartz - avatar
5 Respostas
+ 2
You had non-printable characters instead of spaces as your indenting. Once replaced with spaces it runs fine here for 2.0 2.0 2.0 10.0 10.0 2.0 Note you must enter all 3 lines in the first prompt before submitting. https://code.sololearn.com/clSgGfvm9WfL
26th Jan 2018, 1:17 AM
John Wells
John Wells - avatar
+ 4
You usage for this question is perfect. This is one of the main functions of this area to help fix programs. As to it's running here, it should however server load and type of errors can cause errors like you receive here. Did you get errors on your laptop? I'm going to put it on mine to see if I can figure it out for you.
26th Jan 2018, 12:48 AM
John Wells
John Wells - avatar
+ 2
I'm guessing it is due to your browser or IDE using those characters. Firefox on my laptop and phone displays them. Eclipse's on laptop produced error messages on each line. Used Eclipse's replace all to get rid of them. I copy and pasted back to post my version.
26th Jan 2018, 6:37 PM
John Wells
John Wells - avatar
+ 1
Oh okay. is there an easy way to copy and paste code? can you upload cpp files?
26th Jan 2018, 6:29 PM
Taylor Schwartz
Taylor Schwartz - avatar
+ 1
Okay great, thanks for your help :)
26th Jan 2018, 6:40 PM
Taylor Schwartz
Taylor Schwartz - avatar