fork download
  1. #include <stdio.h>
  2. #include <math.h>
  3.  
  4. void main ()
  5. {
  6. double tempAdjAmount 0.00;
  7. long tempActvAmtInit 0;
  8.  
  9. tempAdjAmount = (3895 * 900000 );
  10. tempAdjAmount = (tempAdjAmount/1000000);
  11. tempActvAmtInit = (int)(tempAdjAmount > (floor(tempAdjAmount)+0.5f)) ? ceil(tempAdjAmount) : floor(tempAdjAmount);
  12. printf("%d",&tempActvAmtInit);
  13.  
  14.  
  15. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:4:6: warning: return type of 'main' is not 'int' [-Wmain]
 void main ()
      ^
prog.c: In function 'main':
prog.c:6:24: error: expected '=', ',', ';', 'asm' or '__attribute__' before numeric constant
   double tempAdjAmount 0.00;
                        ^
prog.c:6:24: warning: statement with no effect [-Wunused-value]
prog.c:7:25: error: expected '=', ',', ';', 'asm' or '__attribute__' before numeric constant
   long  tempActvAmtInit 0;
                         ^
prog.c:7:25: warning: statement with no effect [-Wunused-value]
prog.c:9:3: error: 'tempAdjAmount' undeclared (first use in this function)
   tempAdjAmount = (3895 * 900000 );
   ^
prog.c:9:3: note: each undeclared identifier is reported only once for each function it appears in
prog.c:9:25: warning: integer overflow in expression [-Woverflow]
   tempAdjAmount = (3895 * 900000 );
                         ^
prog.c:11:5: error: 'tempActvAmtInit' undeclared (first use in this function)
     tempActvAmtInit = (int)(tempAdjAmount > (floor(tempAdjAmount)+0.5f)) ? ceil(tempAdjAmount) : floor(tempAdjAmount);
     ^
stdout
Standard output is empty