Ir ao conteúdo
  • Cadastre-se

C++ Iniciante


souLLL

Posts recomendados

#include <iostream>

using namespace std;

int main() {

    float x, y;

    cout << "--------Cálculo de POLINOMIO--------\n";

    cout << "P(x) = 2x^3 + 7x^2 +3x - (5/2)\n";

    cin >> x;

    y <- 2*(x*x*x)+7(x*x)+3*x-5/2;

    cout << "Resultado P(x) = " <<y<< "\n";

}

Esta dando 7 erros na hora de debugar...alguem pode me ajudar...será que falta alguma bibliotéca...

C:\Users\rafael.martins\Desktop\Repositório\C++\t\aula4.c|1|iostream: No such file or directory|

C:\Users\rafael.martins\Desktop\Repositório\C++\t\aula4.c|2|error: syntax error before "namespace"|

C:\Users\rafael.martins\Desktop\Repositório\C++\t\aula4.c|2|warning: type defaults to `int' in declaration of `std'|

C:\Users\rafael.martins\Desktop\Repositório\C++\t\aula4.c|2|warning: data definition has no type or storage class|

C:\Users\rafael.martins\Desktop\Repositório\C++\t\aula4.c||In function `main':|

C:\Users\rafael.martins\Desktop\Repositório\C++\t\aula4.c|5|error: `cout' undeclared (first use in this function)|

C:\Users\rafael.martins\Desktop\Repositório\C++\t\aula4.c|5|error: (Each undeclared identifier is reported only once|

C:\Users\rafael.martins\Desktop\Repositório\C++\t\aula4.c|5|error: for each function it appears in.)|

C:\Users\rafael.martins\Desktop\Repositório\C++\t\aula4.c|7|error: `cin' undeclared (first use in this function)|

C:\Users\rafael.martins\Desktop\Repositório\C++\t\aula4.c|9|error: called object is not a function|

||=== Build finished: 7 errors, 2 warnings (0 minutes, 0 seconds) ===|

Link para o comentário
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novas respostas.

Sobre o Clube do Hardware

No ar desde 1996, o Clube do Hardware é uma das maiores, mais antigas e mais respeitadas comunidades sobre tecnologia do Brasil. Leia mais

Direitos autorais

Não permitimos a cópia ou reprodução do conteúdo do nosso site, fórum, newsletters e redes sociais, mesmo citando-se a fonte. Leia mais

×
×
  • Criar novo...