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

Envío 4526

Problema 0x78 - Suma de 2 números

  • Autor: Sergio.Urrego
  • Fecha: 2021-07-11 22:38:41 UTC (Hace más de 3 años)
Caso # Resultado Tiempo Memoria
#1
Error de compilación
                      main.c:4:7: error: expected expression
scanf(%d %d, &a &b);
      ^
main.c:4:8: error: use of undeclared identifier 'd'
scanf(%d %d, &a &b);
       ^
main.c:4:11: error: use of undeclared identifier 'd'
scanf(%d %d, &a &b);
          ^
main.c:4:15: error: use of undeclared identifier 'a'
scanf(%d %d, &a &b);
              ^
main.c:4:18: error: use of undeclared identifier 'b'
scanf(%d %d, &a &b);
                 ^
main.c:5:16: error: use of undeclared identifier 'a'
printf("%d\n", a + a);
               ^
main.c:5:20: error: use of undeclared identifier 'a'
printf("%d\n", a + a);
                   ^
7 errors generated.

                    
#2
Error de compilación
                      main.c:4:7: error: expected expression
scanf(%d %d, &a &b);
      ^
main.c:4:8: error: use of undeclared identifier 'd'
scanf(%d %d, &a &b);
       ^
main.c:4:11: error: use of undeclared identifier 'd'
scanf(%d %d, &a &b);
          ^
main.c:4:15: error: use of undeclared identifier 'a'
scanf(%d %d, &a &b);
              ^
main.c:4:18: error: use of undeclared identifier 'b'
scanf(%d %d, &a &b);
                 ^
main.c:5:16: error: use of undeclared identifier 'a'
printf("%d\n", a + a);
               ^
main.c:5:20: error: use of undeclared identifier 'a'
printf("%d\n", a + a);
                   ^
7 errors generated.

                    
#3
Error de compilación
                      main.c:4:7: error: expected expression
scanf(%d %d, &a &b);
      ^
main.c:4:8: error: use of undeclared identifier 'd'
scanf(%d %d, &a &b);
       ^
main.c:4:11: error: use of undeclared identifier 'd'
scanf(%d %d, &a &b);
          ^
main.c:4:15: error: use of undeclared identifier 'a'
scanf(%d %d, &a &b);
              ^
main.c:4:18: error: use of undeclared identifier 'b'
scanf(%d %d, &a &b);
                 ^
main.c:5:16: error: use of undeclared identifier 'a'
printf("%d\n", a + a);
               ^
main.c:5:20: error: use of undeclared identifier 'a'
printf("%d\n", a + a);
                   ^
7 errors generated.

                    
#4
Error de compilación
                      main.c:4:7: error: expected expression
scanf(%d %d, &a &b);
      ^
main.c:4:8: error: use of undeclared identifier 'd'
scanf(%d %d, &a &b);
       ^
main.c:4:11: error: use of undeclared identifier 'd'
scanf(%d %d, &a &b);
          ^
main.c:4:15: error: use of undeclared identifier 'a'
scanf(%d %d, &a &b);
              ^
main.c:4:18: error: use of undeclared identifier 'b'
scanf(%d %d, &a &b);
                 ^
main.c:5:16: error: use of undeclared identifier 'a'
printf("%d\n", a + a);
               ^
main.c:5:20: error: use of undeclared identifier 'a'
printf("%d\n", a + a);
                   ^
7 errors generated.

                    
#5
Error de compilación
                      main.c:4:7: error: expected expression
scanf(%d %d, &a &b);
      ^
main.c:4:8: error: use of undeclared identifier 'd'
scanf(%d %d, &a &b);
       ^
main.c:4:11: error: use of undeclared identifier 'd'
scanf(%d %d, &a &b);
          ^
main.c:4:15: error: use of undeclared identifier 'a'
scanf(%d %d, &a &b);
              ^
main.c:4:18: error: use of undeclared identifier 'b'
scanf(%d %d, &a &b);
                 ^
main.c:5:16: error: use of undeclared identifier 'a'
printf("%d\n", a + a);
               ^
main.c:5:20: error: use of undeclared identifier 'a'
printf("%d\n", a + a);
                   ^
7 errors generated.

                    
Puntos totales: 0 / 100

Código

#include <stdio.h>

int main(void){
scanf(%d %d, &a &b);
printf("%d\n", a + a);
return(0);
}