Language: C

#include(stdio.h)
int main() {
    char str[N],buf[2];
    char *p;
    int sum;
    while (1) {
        scanf("%s",str);
        if (str[0] == '0')break;
        sum = 0;
        p = str;
        while (*p) {
            sum += atoi(strncpy(buf,p++,1));
        }
        printf("%d\n", sum);
    }
    return 0;
}


Compiler output:
main.c:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include(stdio.h)
      |         ^
main.c: In function 'main':
main.c:3:1: error: stray '\302' in program
    3 | <U+00A0><U+00A0><U+00A0><U+00A0>char str[N],buf[2];
      | ^~~~~~~~
main.c:3:2: error: stray '\302' in program
    3 | <U+00A0><U+00A0><U+00A0><U+00A0>char str[N],buf[2];
      |         ^~~~~~~~
main.c:3:3: error: stray '\302' in program
    3 | <U+00A0><U+00A0><U+00A0><U+00A0>char str[N],buf[2];
      |                 ^~~~~~~~
main.c:3:4: error: stray '\302' in program
    3 | <U+00A0><U+00A0><U+00A0><U+00A0>char str[N],buf[2];
      |                         ^~~~~~~~
main.c:3:14: error: 'N' undeclared (first use in this function)
    3 |     char str[N],buf[2];
      |              ^
main.c:3:14: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:1: error: stray '\302' in program
    4 | <U+00A0><U+00A0><U+00A0><U+00A0>char *p;
      | ^~~~~~~~
main.c:4:2: error: stray '\302' in program
    4 | <U+00A0><U+00A0><U+00A0><U+00A0>char *p;
      |         ^~~~~~~~
main.c:4:3: error: stray '\302' in program
    4 | <U+00A0><U+00A0><U+00A0><U+00A0>char *p;
      |                 ^~~~~~~~
main.c:4:4: error: stray '\302' in program
    4 | <U+00A0><U+00A0><U+00A0><U+00A0>char *p;
      |                         ^~~~~~~~
main.c:5:1: error: stray '\302' in program
    5 | <U+00A0><U+00A0><U+00A0><U+00A0>int sum;
      | ^~~~~~~~
main.c:5:2: error: stray '\302' in program
    5 | <U+00A0><U+00A0><U+00A0><U+00A0>int sum;
      |         ^~~~~~~~
main.c:5:3: error: stray '\302' in program
    5 | <U+00A0><U+00A0><U+00A0><U+00A0>int sum;
      |                 ^~~~~~~~
main.c:5:4: error: stray '\302' in program
    5 | <U+00A0><U+00A0><U+00A0><U+00A0>int sum;
      |                         ^~~~~~~~
main.c:6:1: error: stray '\302' in program
    6 | <U+00A0><U+00A0><U+00A0><U+00A0>while (1) {
      | ^~~~~~~~
main.c:6:2: error: stray '\302' in program
    6 | <U+00A0><U+00A0><U+00A0><U+00A0>while (1) {
      |         ^~~~~~~~
main.c:6:3: error: stray '\302' in program
    6 | <U+00A0><U+00A0><U+00A0><U+00A0>while (1) {
      |                 ^~~~~~~~
main.c:6:4: error: stray '\302' in program
    6 | <U+00A0><U+00A0><U+00A0><U+00A0>while (1) {
      |                         ^~~~~~~~
main.c:7:1: error: stray '\302' in program
    7 | <U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0>scanf("%s",str);
      | ^~~~~~~~
main.c:7:2: error: stray '\302' in program
    7 | <U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0>scanf("%s",str);
      |         ^~~~~~~~
main.c:7:3: error: stray '\302' in program
    7 | <U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0>scanf("%s",str);
      |                 ^~~~~~~~
main.c:7:4: error: stray '\302' in program
    7 | <U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0>scanf("%s",str);
      |                         ^~~~~~~~
main.c:7:5: error: stray '\302' in program
    7 | <U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0>scanf("%s",str);
      |                                 ^~~~~~~~
main.c:7:6: error: stray '\302' in program
    7 | <U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0>scanf("%s",str);
      |                                         ^~~~~~~~
main.c:7:7: error: stray '\302' in program
    7 | <U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0>scanf("%s",str);
      |                                                 ^~~~~~~~
main.c:7:8: error: stray '\302' in program
    7 | <U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0>scanf("%s",str);
      |                                                         ^~~~~~~~
main.c:7:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    7 |         scanf("%s",str);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #include(stdio.h)
main.c:7:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    7 |         scanf("%s",str);
      |         ^~~~~
main.c:7:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:8:1: error: stray '\302' in program
    8 | <U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0>if (str[0] == '0')break;
      | ^~~~~~~~
main.c:8:2: error: stray '\302' in program
    8 | <U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0>if (str[0] == '0')break;
      |         ^~~~~~~~
main.c:8:3: error: stray '\302' in program
    8 | <U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0>if (str[0] == '0')break;
      |                 ^~~~~~~~
main.c:8:4: error: stray '\302' in program
    8 | <U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0>if (str[0] == '0')break;
      |                         ^~~~~~~~
main.c:8:5: error: stray '\302' in program
    8 | <U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0>if (str[0] == '0')break;
      |                                 ^~~~~~~~
main.c:8:6: error: stray '\302' in program
    8 | <U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0>if (str[0] == '0')break;
      |                                         ^~~~~~~~
main.c:8:7: error: stray '\302' in program
    8 | <U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0>if (str[0] == '0')break;
      |                                                 ^~~~~~~~
main.c:8:8: error: stray '\302' in program
    8 | <U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0>if (str[0] == '0')break;
      |                                                         ^~~~~~~~
main.c:9:1: error: stray '\302' in program
    9 | <U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0>sum = 0;
      | ^~~~~~~~
main.c:9:2: error: stray '\302' in program
    9 | <U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0>sum = 0;
      |         ^~~~~~~~
main.c:9:3: error: stray '\302' in program
    9 | <U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0>sum = 0;
      |                 ^~~~~~~~
main.c:9:4: error: stray '\302' in program
    9 | <U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0>sum = 0;
      |                         ^~~~~~~~
main.c:9:5: error: stray '\302' in program
    9 | <U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0>sum = 0;
      |                                 ^~~~~~~~
main.c:9:6: error: stray '\302' in program
    9 | <U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0>sum = 0;
      |                                         ^~~~~~~~
main.c:9:7: error: stray '\302' in program
    9 | <U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0>sum = 0;
      |                                                 ^~~~~~~~
main.c:9:8: error: stray '\302' in program
    9 | <U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0>sum = 0;
      |                                                         ^~~~~~~~
main.c:10:1: error: stray '\302' in program
   10 | <U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0>p = str;
      | ^~~~~~~~
main.c:10:2: error: stray '\302' in program
   10 | <U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0>p = str;
      |         ^~~~~~~~
main.c:10:3: error: stray '\302' in program
   10 | <U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0>p = str;
      |                 ^~~~~~~~
main.c:10:4: error: stray '\302' in program
   10 | <U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0>p = str;
      |                         ^~~~~~~~
main.c:10:5: error: stray '\302' in program
   10 | <U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0>p = str;
      |                                 ^~~~~~~~
main.c:10:6: error: stray '\302' in program
   10 | <U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0>p = str;
      |                                         ^~~~~~~~
main.c:10:7: error: stray '\302' in program
   10 | <U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0>p = str;
      |                                                 ^~~~~~~~
main.c:10:8: error: stray '\302' in program
   10 | <U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0>p = str;
      |                                                         ^~~~~~~~
main.c:11:1: error: stray '\302' in program
   11 | <U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0>while (*p) {
      | ^~~~~~~~
main.c:11:2: error: stray '\302' in program
   11 | <U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0>while (*p) {
      |         ^~~~~~~~
main.c:11:3: error: stray '\302' in program
   11 | <U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0>while (*p) {
      |                 ^~~~~~~~
main.c:11:4: error: stray '\302' in program
   11 | <U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0>while (*p) {
      |                         ^~~~~~~~
main.c:11:5: error: stray '\302' in program
   11 | <U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0>while (*p) {
      |                                 ^~~~~~~~
main.c:11:6: error: stray '\302' in program
   11 | <U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0>while (*p) {
      |                                         ^~~~~~~~
main.c:11:7: error: stray '\302' in program
   11 | <U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0>while (*p) {
      |                                                 ^~~~~~~~
main.c:11:8: error: stray '\302' in program
   11 | <U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0>while (*p) {
      |                                                         ^~~~~~~~
main.c:12:1: error: stray '\302' in program
   12 | <U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0>sum += atoi(strncpy(buf,p++,1));
      | ^~~~~~~~
main.c:12:2: error: stray '\302' in program
   12 | <U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0><U+00A0>sum += at