Run Code  | Code Wall  | Users  | Misc  | Feedback  | About  | Login  | Theme  | Privacy 

compile c gcc online

Language: Layout:
+ ] Compiler args + ] Show input
Compilation time: 0.14 sec, absolute running time: 0.24 sec, cpu time: 0.14 sec, memory peak: 3 Mb, absolute service time: 0.46 sec 
edit mode |  history
Warning(s):
source_file.c: In function ‘main’:
source_file.c:7:9: warning: implicit declaration of function ‘cos’ [-Wimplicit-function-declaration]
         f += cos(i);
         ^
source_file.c:7:14: warning: incompatible implicit declaration of built-in function ‘cos’ [enabled by default]
         f += cos(i);
              ^
source_file.c:12:5: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
     printf("%.4s%.4s%.4s\n", &a, &b, &c);
     ^
source_file.c:12:5: warning: incompatible implicit declaration of built-in function ‘printf’ [enabled by default]
source_file.c:12:5: warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘int *’ [-Wformat=]
source_file.c:12:5: warning: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘int *’ [-Wformat=]
source_file.c:12:5: warning: format ‘%s’ expects argument of type ‘char *’, but argument 4 has type ‘int *’ [-Wformat=]
Hello World