error when compiling C++

Asked

Viewed 62 times

0

hello, I’m trying to compile a C++ program for a college job plus every time of the error in the printf, including I put the same code in devc++ and persist, someone can help.

inserir a descrição da imagem aqui inserir a descrição da imagem aqui

inserir a descrição da imagem aqui

inserir a descrição da imagem aqui

  • Welcome to Stack Overflow. Edit the question and post the code as text, and the error that occurs, avoid posting code image therefore. Then take a look at the tour for more useful information.

2 answers

2

Notice that you are putting a comma in place of a dot and comma

in float v1,v2,v3,vt,vta, should be float v1,v2,v3,vt,vta;.

1

In the declaration of your variables, in FLOAT you finished with a "," and not a ";"

Replace the "," with a ";" and Compile again.

  • It worked I changed the place points, now when I run , when I type in the case the name, it finishes , but if I put number it keeps running, I added the new prints.

  • Change her variable name, put it like this char nome[50];

Browser other questions tagged

You are not signed in. Login or sign up in order to post.