fork download
  1. #include<stdio.h>
  2.  
  3. void main()
  4. {
  5. int x,y,z;
  6.  
  7. printf(“XtYtZtXY+Z”);
  8.  
  9. for(x=0;x<=1;++x)
  10. for(y=0;y<=1;++y)
  11. for(z=0;z<=1;++z)
  12. {
  13. if(x*y+z==2)
  14. printf(“nn%dt%dt%dt1”,x,y,z);
  15. else
  16. printf(“nn%dt%dt%dt%d”,x,y,z,x*y+z);
  17. }
  18. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:3:1: error: 'main' must return 'int'
void main()
^~~~
int
prog.c:7:8: error: non-ASCII characters are not allowed outside of literals and identifiers
printf(“XtYtZtXY+Z”);
       ^
prog.c:7:21: error: non-ASCII characters are not allowed outside of literals and identifiers
printf(“XtYtZtXY+Z”);
                  ^
prog.c:7:11: error: use of undeclared identifier 'XtYtZtXY'
printf(“XtYtZtXY+Z”);
        ^
prog.c:7:20: error: use of undeclared identifier 'Z'
printf(“XtYtZtXY+Z”);
                 ^
prog.c:14:8: error: non-ASCII characters are not allowed outside of literals and identifiers
printf(“nn%dt%dt%dt1”,x,y,z);
       ^
prog.c:14:11: error: use of undeclared identifier 'nn'
printf(“nn%dt%dt%dt1”,x,y,z);
        ^
prog.c:14:14: error: use of undeclared identifier 'dt'
printf(“nn%dt%dt%dt1”,x,y,z);
           ^
prog.c:14:17: error: use of undeclared identifier 'dt'
printf(“nn%dt%dt%dt1”,x,y,z);
              ^
prog.c:14:23: error: non-ASCII characters are not allowed outside of literals and identifiers
printf(“nn%dt%dt%dt1”,x,y,z);
                    ^
prog.c:14:20: error: use of undeclared identifier 'dt1'
printf(“nn%dt%dt%dt1”,x,y,z);
                 ^
prog.c:16:8: error: non-ASCII characters are not allowed outside of literals and identifiers
printf(“nn%dt%dt%dt%d”,x,y,z,x*y+z);
       ^
prog.c:16:11: error: use of undeclared identifier 'nn'
printf(“nn%dt%dt%dt%d”,x,y,z,x*y+z);
        ^
prog.c:16:14: error: use of undeclared identifier 'dt'
printf(“nn%dt%dt%dt%d”,x,y,z,x*y+z);
           ^
prog.c:16:17: error: use of undeclared identifier 'dt'
printf(“nn%dt%dt%dt%d”,x,y,z,x*y+z);
              ^
prog.c:16:20: error: use of undeclared identifier 'dt'
printf(“nn%dt%dt%dt%d”,x,y,z,x*y+z);
                 ^
prog.c:16:24: error: non-ASCII characters are not allowed outside of literals and identifiers
printf(“nn%dt%dt%dt%d”,x,y,z,x*y+z);
                     ^
prog.c:16:23: error: use of undeclared identifier 'd'
printf(“nn%dt%dt%dt%d”,x,y,z,x*y+z);
                    ^
18 errors generated.
stdout
Standard output is empty