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

Envío 79

Problema 0x78 - Suma de 2 números

Caso # Resultado Tiempo Memoria
#1
Error de compilación
                      main.cpp:5:3: error: use of undeclared identifier 'cin'; did you mean 'std::cin'?
  cin >> a;
  ^~~
  std::cin
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/iostream:60:18: note: 'std::cin' declared here
  extern istream cin;           /// Linked to standard input
                 ^
main.cpp:6:3: error: use of undeclared identifier 'cin'; did you mean 'std::cin'?
  cin >> b;
  ^~~
  std::cin
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/iostream:60:18: note: 'std::cin' declared here
  extern istream cin;           /// Linked to standard input
                 ^
main.cpp:7:3: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
  cout << a + b;
  ^~~~
  std::cout
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/iostream:61:18: note: 'std::cout' declared here
  extern ostream cout;          /// Linked to standard output
                 ^
3 errors generated.

                    
#2
Error de compilación
                      main.cpp:5:3: error: use of undeclared identifier 'cin'; did you mean 'std::cin'?
  cin >> a;
  ^~~
  std::cin
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/iostream:60:18: note: 'std::cin' declared here
  extern istream cin;           /// Linked to standard input
                 ^
main.cpp:6:3: error: use of undeclared identifier 'cin'; did you mean 'std::cin'?
  cin >> b;
  ^~~
  std::cin
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/iostream:60:18: note: 'std::cin' declared here
  extern istream cin;           /// Linked to standard input
                 ^
main.cpp:7:3: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
  cout << a + b;
  ^~~~
  std::cout
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/iostream:61:18: note: 'std::cout' declared here
  extern ostream cout;          /// Linked to standard output
                 ^
3 errors generated.

                    
#3
Error de compilación
                      main.cpp:5:3: error: use of undeclared identifier 'cin'; did you mean 'std::cin'?
  cin >> a;
  ^~~
  std::cin
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/iostream:60:18: note: 'std::cin' declared here
  extern istream cin;           /// Linked to standard input
                 ^
main.cpp:6:3: error: use of undeclared identifier 'cin'; did you mean 'std::cin'?
  cin >> b;
  ^~~
  std::cin
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/iostream:60:18: note: 'std::cin' declared here
  extern istream cin;           /// Linked to standard input
                 ^
main.cpp:7:3: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
  cout << a + b;
  ^~~~
  std::cout
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/iostream:61:18: note: 'std::cout' declared here
  extern ostream cout;          /// Linked to standard output
                 ^
3 errors generated.

                    
#4
Error de compilación
                      main.cpp:5:3: error: use of undeclared identifier 'cin'; did you mean 'std::cin'?
  cin >> a;
  ^~~
  std::cin
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/iostream:60:18: note: 'std::cin' declared here
  extern istream cin;           /// Linked to standard input
                 ^
main.cpp:6:3: error: use of undeclared identifier 'cin'; did you mean 'std::cin'?
  cin >> b;
  ^~~
  std::cin
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/iostream:60:18: note: 'std::cin' declared here
  extern istream cin;           /// Linked to standard input
                 ^
main.cpp:7:3: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
  cout << a + b;
  ^~~~
  std::cout
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/iostream:61:18: note: 'std::cout' declared here
  extern ostream cout;          /// Linked to standard output
                 ^
3 errors generated.

                    
#5
Error de compilación
                      main.cpp:5:3: error: use of undeclared identifier 'cin'; did you mean 'std::cin'?
  cin >> a;
  ^~~
  std::cin
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/iostream:60:18: note: 'std::cin' declared here
  extern istream cin;           /// Linked to standard input
                 ^
main.cpp:6:3: error: use of undeclared identifier 'cin'; did you mean 'std::cin'?
  cin >> b;
  ^~~
  std::cin
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/iostream:60:18: note: 'std::cin' declared here
  extern istream cin;           /// Linked to standard input
                 ^
main.cpp:7:3: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
  cout << a + b;
  ^~~~
  std::cout
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/iostream:61:18: note: 'std::cout' declared here
  extern ostream cout;          /// Linked to standard output
                 ^
3 errors generated.

                    
Puntos totales: 0 / 100

Código

#include <iostream>
int main() {
  long a;
  long b;
  cin >> a;
  cin >> b;
  cout << a + b;
}