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

Envío 977

Problema 0x78 - Suma de 2 números

  • Autor: nicolaspa
  • Fecha: 2020-10-05 15:34:23 UTC (Hace alrededor de 1 año)
Caso # Resultado Tiempo Memoria
#1
Error de compilación
                      main.cpp:6:1: error: use of undeclared identifier 'cin'; did you mean 'std::cin'?
cin >> a >> 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:8:1: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
cout << c;
^~~~
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
                 ^
2 errors generated.

                    
#2
Error de compilación
                      main.cpp:6:1: error: use of undeclared identifier 'cin'; did you mean 'std::cin'?
cin >> a >> 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:8:1: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
cout << c;
^~~~
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
                 ^
2 errors generated.

                    
#3
Error de compilación
                      main.cpp:6:1: error: use of undeclared identifier 'cin'; did you mean 'std::cin'?
cin >> a >> 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:8:1: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
cout << c;
^~~~
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
                 ^
2 errors generated.

                    
#4
Error de compilación
                      main.cpp:6:1: error: use of undeclared identifier 'cin'; did you mean 'std::cin'?
cin >> a >> 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:8:1: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
cout << c;
^~~~
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
                 ^
2 errors generated.

                    
#5
Error de compilación
                      main.cpp:6:1: error: use of undeclared identifier 'cin'; did you mean 'std::cin'?
cin >> a >> 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:8:1: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
cout << c;
^~~~
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
                 ^
2 errors generated.

                    
Puntos totales: 0 / 100

Código

#include <iostream>


int main(){
long a,b,c;
cin >> a >> b;
c = a+b;
cout << c;
return 0;
}