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

Envío 237

Problema 0x78 - Suma de 2 números

  • Autor: dagomez30
  • Fecha: 2020-08-30 22:18:07 UTC (Hace más de 4 años)
Caso # Resultado Tiempo Memoria
#1
Error de compilación
                      main.cpp:9:5: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
    cout << sum << "\n";
    ^~~~
    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
                 ^
1 error generated.

                    
#2
Error de compilación
                      main.cpp:9:5: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
    cout << sum << "\n";
    ^~~~
    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
                 ^
1 error generated.

                    
#3
Error de compilación
                      main.cpp:9:5: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
    cout << sum << "\n";
    ^~~~
    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
                 ^
1 error generated.

                    
#4
Error de compilación
                      main.cpp:9:5: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
    cout << sum << "\n";
    ^~~~
    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
                 ^
1 error generated.

                    
#5
Error de compilación
                      main.cpp:9:5: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
    cout << sum << "\n";
    ^~~~
    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
                 ^
1 error generated.

                    
Puntos totales: 0 / 100

Código

#include <iostream>

int main(void) {
    int num1 = 0, num2 = 0, sum = 0;

    scanf("%d %d", &num1, &num2);
    sum = num1 + num2;

    cout << sum << "\n";
    return 0;
}