fork download
  1. #include<stdio.h>
  2. int main(){
  3. int a= sizeof(signed) +sizeof(unsigned);
  4. int b=sizeof(const)+sizeof(volatile);
  5. printf("%d,%d,%d,%d\n",a,b,sizeof(signed),sizeof(unsigned));
  6. printf("%d",a+++++b);
  7. return 0;
  8. }
  9.  
Compilation error #stdin compilation error #stdout 0s 9432KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:4:5: warning: type defaults to ‘int’ in type name [-Wimplicit-int]
     int b=sizeof(const)+sizeof(volatile);
     ^~~
prog.c:4:5: warning: type defaults to ‘int’ in type name [-Wimplicit-int]
prog.c:5:20: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘long unsigned int’ [-Wformat=]
     printf("%d,%d,%d,%d\n",a,b,sizeof(signed),sizeof(unsigned));
                    ^
prog.c:5:23: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘long unsigned int’ [-Wformat=]
     printf("%d,%d,%d,%d\n",a,b,sizeof(signed),sizeof(unsigned));
                       ^
prog.c:6:20: error: lvalue required as increment operand
     printf("%d",a+++++b);
                    ^~
stdout
Standard output is empty