fork download
  1. #include<stdio.h>
  2. int main()
  3. {
  4. int n;
  5. scanf("%d",n);
  6. if(c=(n>>3))
  7. {
  8. printf("divisible by 8");
  9.  
  10. }
  11. else
  12. printf("not divisible");
  13.  
  14. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
8
compilation info
prog.c: In function ‘main’:
prog.c:5: warning: format ‘%d’ expects type ‘int *’, but argument 2 has type ‘int’
prog.c:6: error: ‘c’ undeclared (first use in this function)
prog.c:6: error: (Each undeclared identifier is reported only once
prog.c:6: error: for each function it appears in.)
prog.c:5: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result
stdout
Standard output is empty