Language: C

#include <stdio.h>
char s [5];
int main ()
{
scanf ("% s " ,& s );
int a = s [0] - ’0 ’ , b = s [1] - ’0 ’ , c = s [2] - ’0 ’ , d = s [3] - ’0 ’;
if (a -b -c - d ==7) printf ("% d -% d -% d -% d =7\ n " ,a ,b ,c , d );
else if (a -b - c + d ==7) printf ("% d -% d -% d +% d =7\ n " ,a ,b ,c , d );
else if (a - b +c - d ==7) printf ("% d -% d +% d -% d =7\ n " ,a ,b ,c , d );
else if (a - b + c + d ==7) printf ("% d -% d +% d +% d =7\ n " ,a ,b ,c , d );
else if ( a +b -c - d ==7) printf ("% d +% d -% d -% d =7\ n " ,a ,b ,c , d );
else if ( a +b - c + d ==7) printf ("% d +% d -% d +% d =7\ n " ,a ,b ,c , d );
else if ( a + b +c - d ==7) printf ("% d +% d +% d -% d =7\ n " ,a ,b ,c , d );
else if ( a + b + c + d ==7) printf ("% d +% d +% d +% d =7\ n " ,a ,b ,c , d );
}


Compiler output:
main.c: In function 'main':
main.c:6:17: error: stray '\342' in program
    6 | int a = s [0] - <U+2019>0 <U+2019> , b = s [1] - <U+2019>0 <U+2019> , c = s [2] - <U+2019>0 <U+2019> , d = s [3] - <U+2019>0 <U+2019>;
      |                 ^~~~~~~~
main.c:6:20: error: stray '\342' in program
    6 | int a = s [0] - <U+2019>0 <U+2019> , b = s [1] - <U+2019>0 <U+2019> , c = s [2] - <U+2019>0 <U+2019> , d = s [3] - <U+2019>0 <U+2019>;
      |                           ^~~~~~~~
main.c:6:36: error: stray '\342' in program
    6 | int a = s [0] - <U+2019>0 <U+2019> , b = s [1] - <U+2019>0 <U+2019> , c = s [2] - <U+2019>0 <U+2019> , d = s [3] - <U+2019>0 <U+2019>;
      |                                                  ^~~~~~~~
main.c:6:39: error: stray '\342' in program
    6 | int a = s [0] - <U+2019>0 <U+2019> , b = s [1] - <U+2019>0 <U+2019> , c = s [2] - <U+2019>0 <U+2019> , d = s [3] - <U+2019>0 <U+2019>;
      |                                                            ^~~~~~~~
main.c:6:55: error: stray '\342' in program
    6 | int a = s [0] - <U+2019>0 <U+2019> , b = s [1] - <U+2019>0 <U+2019> , c = s [2] - <U+2019>0 <U+2019> , d = s [3] - <U+2019>0 <U+2019>;
      |                                                                                   ^~~~~~~~
main.c:6:58: error: stray '\342' in program
    6 | int a = s [0] - <U+2019>0 <U+2019> , b = s [1] - <U+2019>0 <U+2019> , c = s [2] - <U+2019>0 <U+2019> , d = s [3] - <U+2019>0 <U+2019>;
      |                                                                                             ^~~~~~~~
main.c:6:74: error: stray '\342' in program
    6 | int a = s [0] - <U+2019>0 <U+2019> , b = s [1] - <U+2019>0 <U+2019> , c = s [2] - <U+2019>0 <U+2019> , d = s [3] - <U+2019>0 <U+2019>;
      |                                                                                                                    ^~~~~~~~
main.c:6:77: error: stray '\342' in program
    6 | int a = s [0] - <U+2019>0 <U+2019> , b = s [1] - <U+2019>0 <U+2019> , c = s [2] - <U+2019>0 <U+2019> , d = s [3] - <U+2019>0 <U+2019>;
      |                                                                                                                              ^~~~~~~~
main.c:7:58: warning: unknown escape sequence: '\040'
    7 | if (a -b -c - d ==7) printf ("% d -% d -% d -% d =7\ n " ,a ,b ,c , d );
      |                                                          ^
main.c:8:64: warning: unknown escape sequence: '\040'
    8 | else if (a -b - c + d ==7) printf ("% d -% d -% d +% d =7\ n " ,a ,b ,c , d );
      |                                                                ^
main.c:9:64: warning: unknown escape sequence: '\040'
    9 | else if (a - b +c - d ==7) printf ("% d -% d +% d -% d =7\ n " ,a ,b ,c , d );
      |                                                                ^
main.c:10:65: warning: unknown escape sequence: '\040'
   10 | else if (a - b + c + d ==7) printf ("% d -% d +% d +% d =7\ n " ,a ,b ,c , d );
      |                                                                 ^
main.c:11:64: warning: unknown escape sequence: '\040'
   11 | else if ( a +b -c - d ==7) printf ("% d +% d -% d -% d =7\ n " ,a ,b ,c , d );
      |                                                                ^
main.c:12:65: warning: unknown escape sequence: '\040'
   12 | else if ( a +b - c + d ==7) printf ("% d +% d -% d +% d =7\ n " ,a ,b ,c , d );
      |                                                                 ^
main.c:13:65: warning: unknown escape sequence: '\040'
   13 | else if ( a + b +c - d ==7) printf ("% d +% d +% d -% d =7\ n " ,a ,b ,c , d );
      |                                                                 ^
main.c:14:66: warning: unknown escape sequence: '\040'
   14 | else if ( a + b + c + d ==7) printf ("% d +% d +% d +% d =7\ n " ,a ,b ,c , d );
      |                                                                  ^