TEMA

Não consigo achar o erro C++

luciana30 preguntado 3 years ago

Olá, não consigo achar o erro. Alguém ajuda? Dá wrong answer 5%

Pregunta resuelta. Código eliminado.

Obrigada!

Este tema fue resuelto y no puede recibir nuevas respuestas.

  • JkManRdlo respondido 3 years ago

    Hello, your error is here :

    else if (x==0 && y!=0) {cout << "Eixo X" << endl;
      else if (x!=0 && y==0) {cout << "Eixo Y" << endl;

    it should be like this :

    else if (x!=0 && y==0) {cout << "Eixo X" << endl;
     } else if (x==0 && y!=0) {cout << "Eixo Y" << endl;