Error compiling the world [closed]

0
#include <stdlib>

int main()
{
   printf("Ola Mundo!\n");
   return 0;
}

I can not run the program on Ubuntu! Compile Error

    
asked by anonymous 07.08.2016 / 20:05

3 answers

0
apt-get install gcc

Change% with% for

#include <stdlib.h>
    
07.08.2016 / 20:19
3

Try to put #include <stdio.h> just above the code.

    
07.08.2016 / 20:12
0

Change #include <stdlib.h> by #include <stdio.h> , because the printf(); function is in stdio.h , not stdlib.h .

    
07.09.2016 / 21:12