Answer the question
In order to leave comments, you need to log in
The compiler throws a c++ error, what should I fix?
I just started writing a program, but the code is no longer compiled, I don’t understand what is written incorrectly, tell me what to fix
Answer the question
In order to leave comments, you need to log in
0. The code must be inserted as text in a special tag, not as an image.
1. You misused the comma operator , it doesn't work like that and
cin >> a, b, c;
it won't read the values of a, b and c as you would like.
It is correct to write like this:
cin >> a >> b >> c;
with uninitialized. It is necessary not to list through a comma, but through >>. The comma simply allows expressions to be combined.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question