6 ms·
I can't compile this. What am I doing wrong? Here is the output: $ gcc -o donut donut.c -lm donut.c:1: warning: data definition has no type or storage class
by zkarcher 15y ago
I can't compile this. What am I doing wrong? Here is the output:
$ gcc -o donut donut.c -lm
donut.c:1: warning: data definition has no type or storage class
donut.c: In function ‘main’:
donut.c:4: warning: incompatible implicit declaration of built-in function ‘printf’
donut.c:5: warning: incompatible implicit declaration of built-in function ‘memset’
- Abica 15y agoYou need to go add: #include <stdio.h> #include <string.h> and then add int directly before the k on the first line of the donut.
- jwecker 15y agoThey're just warnings. I got the same ones but it still created a perfectly good executable. (you kind of have to assume warnings with obfuscated code :)