Language: C

  double x,y;
  char line[256];

  fgets(line,sizeof(line),stdin);
  sscanf(line,"%lf %lf %lf %lf %lf %lf",&a,&b,&c,&d,&e,&f);
  
  x=(d*f-b*e)/(a*d-b*c);
  y=(a*f-c*e)/(a*d-b*c);

  if(x>0){
    if((int)(x*10000) % 10>=5){
      x=x+0.001;
    }
  }
  else if(x<0){
    if((int)(x*10000)%10<5)
    x=x-0.001;
  }
  else x=0.000;

  if(y>0){
    if((int)(y*10000) % 10>=5){
      y=y+0.001;
    }
  }
  else if(y<0){
    if((int)(y*10000)%10<5)
    y=y-0.001;
  }
  else y=0.000;

  printf("%.3lf %.3lf\n",x,y);

  return 0;
}

Compiler output:
main.c:4:14: error: expected ')' before 'sizeof'
    4 |   fgets(line,sizeof(line),stdin);
      |              ^~~~~~
      |              )
main.c:5:15: error: expected ')' before string constant
    5 |   sscanf(line,"%lf %lf %lf %lf %lf %lf",&a,&b,&c,&d,&e,&f);
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~
      |               )
main.c:7:3: warning: data definition has no type or storage class
    7 |   x=(d*f-b*e)/(a*d-b*c);
      |   ^
main.c:7:3: error: type defaults to 'int' in declaration of 'x' [-Wimplicit-int]
main.c:7:3: error: conflicting types for 'x'; have 'int'
main.c:1:10: note: previous declaration of 'x' with type 'double'
    1 |   double x,y;
      |          ^
main.c:7:6: error: 'd' undeclared here (not in a function)
    7 |   x=(d*f-b*e)/(a*d-b*c);
      |      ^
main.c:7:8: error: 'f' undeclared here (not in a function)
    7 |   x=(d*f-b*e)/(a*d-b*c);
      |        ^
main.c:7:10: error: 'b' undeclared here (not in a function)
    7 |   x=(d*f-b*e)/(a*d-b*c);
      |          ^
main.c:7:12: error: 'e' undeclared here (not in a function)
    7 |   x=(d*f-b*e)/(a*d-b*c);
      |            ^
main.c:7:16: error: 'a' undeclared here (not in a function)
    7 |   x=(d*f-b*e)/(a*d-b*c);
      |                ^
main.c:7:22: error: 'c' undeclared here (not in a function)
    7 |   x=(d*f-b*e)/(a*d-b*c);
      |                      ^
main.c:8:3: warning: data definition has no type or storage class
    8 |   y=(a*f-c*e)/(a*d-b*c);
      |   ^
main.c:8:3: error: type defaults to 'int' in declaration of 'y' [-Wimplicit-int]
main.c:8:3: error: conflicting types for 'y'; have 'int'
main.c:1:12: note: previous declaration of 'y' with type 'double'
    1 |   double x,y;
      |            ^
main.c:10:3: error: expected identifier or '(' before 'if'
   10 |   if(x>0){
      |   ^~
main.c:15:3: error: expected identifier or '(' before 'else'
   15 |   else if(x<0){
      |   ^~~~
main.c:19:3: error: expected identifier or '(' before 'else'
   19 |   else x=0.000;
      |   ^~~~
main.c:21:3: error: expected identifier or '(' before 'if'
   21 |   if(y>0){
      |   ^~
main.c:26:3: error: expected identifier or '(' before 'else'
   26 |   else if(y<0){
      |   ^~~~
main.c:30:3: error: expected identifier or '(' before 'else'
   30 |   else y=0.000;
      |   ^~~~
main.c:32:10: error: expected declaration specifiers or '...' before string constant
   32 |   printf("%.3lf %.3lf\n",x,y);
      |          ^~~~~~~~~~~~~~~
main.c:32:26: error: expected declaration specifiers or '...' before 'x'
   32 |   printf("%.3lf %.3lf\n",x,y);
      |                          ^
main.c:32:28: error: expected declaration specifiers or '...' before 'y'
   32 |   printf("%.3lf %.3lf\n",x,y);
      |                            ^
main.c:34:3: error: expected identifier or '(' before 'return'
   34 |   return 0;
      |   ^~~~~~
main.c:35:1: error: expected identifier or '(' before '}' token
   35 | }
      | ^