Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Error de compilación
main.c:1:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void main() ^ main.c:1:1: note: change return type to 'int' void main() ^~~~ int main.c:3:1: warning: implicitly declaring library function 'printf' with type 'int (const char *, ...)' [-Wimplicit-function-declaration] printf("Hola Codeo\n"); ^ main.c:3:1: note: include the header <stdio.h> or explicitly provide a declaration for 'printf' main.c:4:1: error: void function 'main' should not return a value [-Wreturn-type] return (0); ^ ~~~ 2 warnings and 1 error generated. |
void main() { printf("Hola Codeo\n"); return (0); }