Code trainer not working? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Code trainer not working?

I was trying to do the new exercises on the C# course that you have to do in order to obtain the "certification", however, it says that my output (literally the same as the expected) is not the expected. This happens not only with the C# course, it also happens with other codes of the code trainer. Is that some kind of bug? Does somebody has experience the same?

12th Jan 2021, 10:25 AM
theJellyJam
4 Answers
+ 1
You need to get the input, for example INPUT: 2 3 Then here you need to get two inputs. ( I dont know C#, so I'll just write in pseudo ) Var1 = INPUT Var2 = INPUT // 2 is assigned to Var1 // 3 is assigned to Var2 // Then some code to satisfy the expected output whatever the input may be.
12th Jan 2021, 11:06 AM
noteve
noteve - avatar
+ 1
If the program did not met the expected output, then something is wrong with your code, you need to adjust it. By the way, did you get the input?
12th Jan 2021, 10:47 AM
noteve
noteve - avatar
+ 1
YeudielCJ There are 5 testcases and all need to be passed.
12th Jan 2021, 11:03 AM
Marc
Marc - avatar
+ 1
Well, I honestly didn't know that the input data should be...well, written, instead of received by Console.ReadLine(); That explains a lot.
12th Jan 2021, 11:08 AM
theJellyJam