fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int a = 2;
  5. int b = 1;
  6. printf("%d",&a);
  7. while(b =< 7){
  8. a += 3;
  9. printf("%d",&a);
  10. b += 1;
  11. a += 2;
  12. printf("%d",&a);
  13. b += 1;
  14. }
  15. return 0;
  16. }
  17.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:6:12: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘int *’ [-Wformat=]
   printf("%d",&a);
           ~^  ~~
           %ls
prog.c:7:12: error: expected expression before ‘<’ token
   while(b =< 7){
            ^
prog.c:9:12: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘int *’ [-Wformat=]
   printf("%d",&a);
           ~^  ~~
           %ls
prog.c:12:12: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘int *’ [-Wformat=]
   printf("%d",&a);
           ~^  ~~
           %ls
stdout
Standard output is empty