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

Envío 4523

Problema 0x0 - Hola Codeo

  • Autor: Sergio.Urrego
  • Fecha: 2021-07-11 22:29:17 UTC (Hace más de 2 años)
Caso # Resultado Tiempo Memoria
#1
Error de compilación
                      main.c:1:10: error: expected "FILENAME" or <FILENAME>
#include stdio.h
         ^
main.c:3:1: warning: return type of 'main' is not 'int' [-Wmain-return-type]
void main(void){
^
main.c:3:1: note: change return type to 'int'
void main(void){
^~~~
int
main.c:4:1: warning: implicitly declaring library function 'printf' with type 'int (const char *, ...)' [-Wimplicit-function-declaration]
printf("Hola Codeo");
^
main.c:4:1: note: include the header <stdio.h> or explicitly provide a declaration for 'printf'
main.c:5:1: error: void function 'main' should not return a value [-Wreturn-type]
return(0);
^     ~~~
2 warnings and 2 errors generated.

                    
Puntos totales: 0 / 100

Código

#include stdio.h

void main(void){
printf("Hola Codeo");
return(0);
}