fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int x;
  5. int y;
  6. int a;
  7. for(x=1;x<=30;x=x+1){
  8. for(y=14;y<=30;y=y+1){if(x+y=30 && x*y=221);
  9. {printf("%d\,%d\n"x,y)}
  10. return 0;
  11. }
  12.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:8:38: warning: ‘*’ in boolean context, suggest ‘&&’ instead [-Wint-in-bool-context]
  for(y=14;y<=30;y=y+1){if(x+y=30 && x*y=221);
                                     ~^~
prog.c:8:40: error: lvalue required as left operand of assignment
  for(y=14;y<=30;y=y+1){if(x+y=30 && x*y=221);
                                        ^
prog.c:8:24: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
  for(y=14;y<=30;y=y+1){if(x+y=30 && x*y=221);
                        ^~
prog.c:9:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
  {printf("%d\,%d\n"x,y)}
  ^
prog.c:9:10: warning: unknown escape sequence: '\,'
  {printf("%d\,%d\n"x,y)}
          ^~~~~~~~~~
prog.c:9:20: error: expected ‘)’ before ‘x’
  {printf("%d\,%d\n"x,y)}
                    ^
                    )
prog.c:9:12: warning: format ‘%d’ expects a matching ‘int’ argument [-Wformat=]
  {printf("%d\,%d\n"x,y)}
           ~^
prog.c:9:16: warning: format ‘%d’ expects a matching ‘int’ argument [-Wformat=]
  {printf("%d\,%d\n"x,y)}
               ~^
prog.c:9:24: error: expected ‘;’ before ‘}’ token
  {printf("%d\,%d\n"x,y)}
                        ^
                        ;
prog.c:11:1: error: expected declaration or statement at end of input
 }
 ^
prog.c:11:1: error: expected declaration or statement at end of input
prog.c:6:6: warning: unused variable ‘a’ [-Wunused-variable]
  int a;
      ^
stdout
Standard output is empty