fork download
  1. #define PRODUCT(a,b) (a*b)
  2. int main()
  3. {
  4.  
  5. printf(PRODUCT of 3 and 5 %d",PRODUCT (3-5,5+7));
  6. getch();
  7. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:5:1: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
 printf(PRODUCT of 3 and 5 %d",PRODUCT (3-5,5+7));
 ^~~~~~
prog.c:5:1: warning: incompatible implicit declaration of built-in function ‘printf’
prog.c:5:1: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
prog.c:5:8: error: ‘PRODUCT’ undeclared (first use in this function)
 printf(PRODUCT of 3 and 5 %d",PRODUCT (3-5,5+7));
        ^~~~~~~
prog.c:5:8: note: each undeclared identifier is reported only once for each function it appears in
prog.c:5:16: error: expected ‘)’ before ‘of’
 printf(PRODUCT of 3 and 5 %d",PRODUCT (3-5,5+7));
                ^~
prog.c:5:29: warning: missing terminating " character
 printf(PRODUCT of 3 and 5 %d",PRODUCT (3-5,5+7));
                             ^
prog.c:5:29: error: missing terminating " character
 printf(PRODUCT of 3 and 5 %d",PRODUCT (3-5,5+7));
                             ^~~~~~~~~~~~~~~~~~~~~
prog.c:7:1: error: expected ‘;’ before ‘}’ token
 }
 ^
stdout
Standard output is empty