fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4.  
  5. int n,n2;
  6.  
  7. n=4562;
  8.  
  9. n2=n;
  10.  
  11. int l:
  12.  
  13. l=0;
  14.  
  15. while(n>0){
  16.  
  17.  
  18. n=n/10;
  19.  
  20.  
  21. }
  22.  
  23. printf("%d",l);
  24.  
  25.  
  26. return 0;
  27. }
  28.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:11:7: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token
  int l:
       ^
prog.c:11:7: error: expected expression before ‘:’ token
prog.c:23:14: error: ‘l’ undeclared (first use in this function)
  printf("%d",l);
              ^
prog.c:23:14: note: each undeclared identifier is reported only once for each function it appears in
prog.c:5:8: warning: variable ‘n2’ set but not used [-Wunused-but-set-variable]
  int n,n2;
        ^~
stdout
Standard output is empty