fork download
  1. #include<stdio.h>
  2. #define x 5+2
  3. void main()
  4. {
  5. int i;
  6. i=x*x*x;
  7. printf(%d,i);
  8. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:3:6: warning: return type of ‘main’ is not ‘int’ [-Wmain]
 void main()
      ^~~~
prog.c: In function ‘main’:
prog.c:7:8: error: expected expression before ‘%’ token
 printf(%d,i);
        ^
prog.c:5:5: warning: variable ‘i’ set but not used [-Wunused-but-set-variable]
 int i;
     ^
stdout
Standard output is empty