N
N
nimbus2142021-09-25 11:16:07
C++ / C#
nimbus214, 2021-09-25 11:16:07

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 fix614edabb66928465359881.jpeg614edac3b8ab0854075075.jpeg

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Armenian Radio, 2021-09-25
@nimbus214

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;

D
Denis Zagaevsky, 2021-09-25
@zagayevskiy

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 question

Ask a Question

731 491 924 answers to any question