fork download
  1. main() {
  2. printf("Hello Word.\n");
  3. printf("pow function : %f \n", pow(10,2));
  4. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:1:1: error: return type defaults to ‘int’ [-Werror=implicit-int]
 main() {
 ^~~~
prog.c: In function ‘main’:
prog.c:2:5: error: implicit declaration of function ‘printf’ [-Werror=implicit-function-declaration]
     printf("Hello Word.\n");
     ^~~~~~
prog.c:2:5: error: incompatible implicit declaration of built-in function ‘printf’ [-Werror]
prog.c:2:5: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
prog.c:3:36: error: implicit declaration of function ‘pow’ [-Werror=implicit-function-declaration]
     printf("pow function : %f \n", pow(10,2));
                                    ^~~
prog.c:3:36: error: incompatible implicit declaration of built-in function ‘pow’ [-Werror]
prog.c:3:36: note: include ‘<math.h>’ or provide a declaration of ‘pow’
cc1: all warnings being treated as errors
stdout
Standard output is empty