Code works on PC but doesn't in Solo Learn??? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

Code works on PC but doesn't in Solo Learn???

Hello! This code works perfectly fine on PC but it gives error in this app. Am I missing something or what?? Thanks for any contribution 🙏 😊 https://code.sololearn.com/cLj9i9mf5gqr/?ref=app

18th Jan 2022, 9:29 PM
Yusuf
Yusuf - avatar
6 Réponses
+ 5
rewrite it without all the extra weird characters https://code.sololearn.com/ccSOHU2Kswuv/?ref=app
18th Jan 2022, 9:36 PM
Slick
Slick - avatar
+ 2
Also, C doesn't like array declarations with a variable as its size. You could use memory allocation but, hey, do you really have to store all values?
19th Jan 2022, 4:37 AM
Emerson Prado
Emerson Prado - avatar
+ 1
Slick Ohh, I didn't know how to interpret those error messages. Thanks a lot
18th Jan 2022, 9:52 PM
Yusuf
Yusuf - avatar
0
Slick Sorry but I can't see any weird character 😕 Could you tell me the which line in my code??
18th Jan 2022, 9:45 PM
Yusuf
Yusuf - avatar
0
So many lines. Run your code and look at each line it throws an error on. There are your weird characters Some characters are not visible
18th Jan 2022, 9:46 PM
Slick
Slick - avatar
0
Emerson Prado Oh yeah, I got your point rn. I can make calculation in input phase without storing all inputs. More efficient idea. Thanks
19th Jan 2022, 8:10 AM
Yusuf
Yusuf - avatar