█████████ ████ ███░░░░░███ ░░███ ███ ░░░ ██████ ███████ ██████ ██████ ░███ ███░░███ ███░░███ ███░░███ ███░░███ ░███ ░███ ░███░███ ░███ ░███████ ░███ ░███ ░░███ ███░███ ░███░███ ░███ ░███░░░ ░███ ░███ ░░█████████ ░░██████ ░░████████░░██████ ░░██████ ░░░░░░░░░ ░░░░░░ ░░░░░░░░ ░░░░░░ ░░░░░░

Envío 6489

Problema 0x78 - Suma de 2 números

  • Autor: danidiaztech
  • Fecha: 2022-07-08 04:35:57 UTC (Hace más de 2 años)
Caso # Resultado Tiempo Memoria
#1
Error de compilación
                      main.cpp:6:10: error: use of undeclared identifier 'a'
  cin >> a >> b;
         ^
main.cpp:6:15: error: use of undeclared identifier 'b'
  cin >> a >> b;
              ^
main.cpp:7:11: error: use of undeclared identifier 'a'
  cout << a + b << endl;
          ^
main.cpp:7:15: error: use of undeclared identifier 'b'
  cout << a + b << endl;
              ^
4 errors generated.

                    
#2
Error de compilación
                      main.cpp:6:10: error: use of undeclared identifier 'a'
  cin >> a >> b;
         ^
main.cpp:6:15: error: use of undeclared identifier 'b'
  cin >> a >> b;
              ^
main.cpp:7:11: error: use of undeclared identifier 'a'
  cout << a + b << endl;
          ^
main.cpp:7:15: error: use of undeclared identifier 'b'
  cout << a + b << endl;
              ^
4 errors generated.

                    
#3
Error de compilación
                      main.cpp:6:10: error: use of undeclared identifier 'a'
  cin >> a >> b;
         ^
main.cpp:6:15: error: use of undeclared identifier 'b'
  cin >> a >> b;
              ^
main.cpp:7:11: error: use of undeclared identifier 'a'
  cout << a + b << endl;
          ^
main.cpp:7:15: error: use of undeclared identifier 'b'
  cout << a + b << endl;
              ^
4 errors generated.

                    
#4
Error de compilación
                      main.cpp:6:10: error: use of undeclared identifier 'a'
  cin >> a >> b;
         ^
main.cpp:6:15: error: use of undeclared identifier 'b'
  cin >> a >> b;
              ^
main.cpp:7:11: error: use of undeclared identifier 'a'
  cout << a + b << endl;
          ^
main.cpp:7:15: error: use of undeclared identifier 'b'
  cout << a + b << endl;
              ^
4 errors generated.

                    
#5
Error de compilación
                      main.cpp:6:10: error: use of undeclared identifier 'a'
  cin >> a >> b;
         ^
main.cpp:6:15: error: use of undeclared identifier 'b'
  cin >> a >> b;
              ^
main.cpp:7:11: error: use of undeclared identifier 'a'
  cout << a + b << endl;
          ^
main.cpp:7:15: error: use of undeclared identifier 'b'
  cout << a + b << endl;
              ^
4 errors generated.

                    
Puntos totales: 0 / 100

Código

#include <bits/stdc++.h>

using namespace std;

int main(){
  cin >> a >> b;
  cout << a + b << endl;
}