- 1
Noob question for transportation exercise c++
the exercise says my oupout should be 24 but I run the program it says that my output should be 38. Please Help me understand my mistake https://code.sololearn.com/c0i0UDVNKVld/?ref=app
9 Answers
+ 1
AĶ¢J
The input isn't 126?
do I have to put cin a
+ 1
AĶ¢J
Thanks
+ 1
Marvin Guedj
input 126 was just in example but there are multiple test cases so input might be different for each case.
+ 1
@ understood thanks
+ 1
Your code works right,
Based on your input your output will be different.
0
Marvin Guedj
You have to take input and store in variable 'a'
0
Marvin Guedj
Yes
cin << a;
0
AĶ¢J can you explain why I need to use user input cin and can't just define the variable and what are the differences
0
Hallo