Language: C


#include <stdio.h>

int main() {
  int n1, n2, n3;

  scanf("%d", &n1);
  scanf("%d", &n2);
  scanf("%d", &n3);

  char out[4];
 

if (n1 < n2 && n1 < n3) {
    out += n1;
    out += " ";

    if (n2 < n3) {
      out += n2;
      out += " ";
      out += n3;
    } else {
      out += n3;
      out += " ";
  
    out += n2;
    }
    printf("%s\n", out);
  }
  else if (n2 < n1 && n2 < n3) {
    out += n2;
    out += " ";

    if (n1 < n3) {
      out += n1;
      out += " ";

 out += n3;
    } else {
      out += n3;
      out += " ";
      out += n1;
    }
    printf("%s\n", out);
  }
  else {
    out += n3;
    out += " ";

if (n2 < n1) {
      out += n2;
      out += " ";
      out += n1;
    } else {
      out += n1;
      out += " ";
      out += n2;
    }
    printf("%s\n", out);
  }

  return 0;
}



Compiler output:
main.c: In function 'main':
main.c:15:9: error: assignment to expression with array type
   15 |     out += n1;
      |         ^~
main.c:16:9: error: assignment to expression with array type
   16 |     out += " ";
      |         ^~
main.c:19:11: error: assignment to expression with array type
   19 |       out += n2;
      |           ^~
main.c:20:11: error: assignment to expression with array type
   20 |       out += " ";
      |           ^~
main.c:21:11: error: assignment to expression with array type
   21 |       out += n3;
      |           ^~
main.c:23:11: error: assignment to expression with array type
   23 |       out += n3;
      |           ^~
main.c:24:11: error: assignment to expression with array type
   24 |       out += " ";
      |           ^~
main.c:26:9: error: assignment to expression with array type
   26 |     out += n2;
      |         ^~
main.c:31:9: error: assignment to expression with array type
   31 |     out += n2;
      |         ^~
main.c:32:9: error: assignment to expression with array type
   32 |     out += " ";
      |         ^~
main.c:35:11: error: assignment to expression with array type
   35 |       out += n1;
      |           ^~
main.c:36:11: error: assignment to expression with array type
   36 |       out += " ";
      |           ^~
main.c:38:6: error: assignment to expression with array type
   38 |  out += n3;
      |      ^~
main.c:40:11: error: assignment to expression with array type
   40 |       out += n3;
      |           ^~
main.c:41:11: error: assignment to expression with array type
   41 |       out += " ";
      |           ^~
main.c:42:11: error: assignment to expression with array type
   42 |       out += n1;
      |           ^~
main.c:47:9: error: assignment to expression with array type
   47 |     out += n3;
      |         ^~
main.c:48:9: error: assignment to expression with array type
   48 |     out += " ";
      |         ^~
main.c:51:11: error: assignment to expression with array type
   51 |       out += n2;
      |           ^~
main.c:52:11: error: assignment to expression with array type
   52 |       out += " ";
      |           ^~
main.c:53:11: error: assignment to expression with array type
   53 |       out += n1;
      |           ^~
main.c:55:11: error: assignment to expression with array type
   55 |       out += n1;
      |           ^~
main.c:56:11: error: assignment to expression with array type
   56 |       out += " ";
      |           ^~
main.c:57:11: error: assignment to expression with array type
   57 |       out += n2;
      |           ^~