+ 1
Bad challenges - so annoying!!
There is so many challenges out there (especially in c++) which the answers to is just incorrect. for example, they ask if a code is valid while the main function should return int and the return statement isn't even written there. Please Sololearn - you are great, but review the challenges better please!!! (I literally almost broke my phone raging on the fifth time)
9 Respuestas
+ 6
If you find an incorrect question in challenges please do report it. Thats all we can do for now 😥
+ 2
In java challenges, there are some really triggering questions. Why would ever do "String s = new String("g")" or "Integer i = new Integer(4)", you just do not do that.
+ 2
"depends on the compiler"
This is only true if you're using a compiler that doesn't follow the specs. Otherwise, it is always a given that a main function without a return statement returns 0: http://www.stroustrup.com/bs_faq2.html
+ 1
Speaking of Java challenges I also thought many answers were wrong. Later I found out that I was wrong, some of them are really tricky
+ 1
@merkrafter - depends on the compiler. you know what - wonderful. There is a question in the challenges which ask if a code is valid to and the return value doesnt exist there and the answer is not valid. (f-word) choose which way to go...
+ 1
@Martin - hahaha in c++ I had a question which was so not trivial to understand something like the output of string("abc" "ghd")
0
9) Create a program that prompts the user for two start and end numbers and shows on the screen a countdown
Number entered for the beginning and scroll to the number entered as end.
Someone resolves this one for me.
0
In C # language
- 3
(In C++ you don't necessarily need a return statement in the main function. If you don't write one, the compiler adds it automatically.)