I'm new to programming and was using Visual Studio Code in C language to try out coding. I started with the Hello World function, but, even though the output was correct (the output was "Hello World!"), the following warning appeared. I don't know what it means:
[Running] cd "c:\Users\lucas\OneDrive\Ambiente de Trabalho\" && gcc test.c -o test && "c:\Users\lucas\OneDrive\Ambiente de Trabalho\"test
test.c:3:1: warning: return type defaults to 'int' [-Wimplicit-int]
3 | main(){
| ^~~~
Hello World
[Done] exited with code=0 in 0.71 seconds
I used the code below to get the Hello World output:
#include<stdio.h>
main (){
printf("Hello World!");
}
What should I do to fix this warning? Thanks for the help!