Language: C

#include<stdio.h>
#define N 26

void pre(int);
void ino(int);
void pos(int);

struct Node{
 int v, a, b; 
};

struct Node G[N];

int n, i, l, r, p;

char S[4][100]={"Preorder","Inorder","Postorder"};

int main(){
    void (*funcs[])(int)={pre,ino,pos};
    scanf("%d",&n);
    for(i=0;i<n;i++){
        scanf("%d%d%d",&p,&l,&r);
????????????????G[l].v=G[r].v=1;
????????????????G[p].a=l;
????????????????G[p].b=r;
????????}
????????for(i=0;i<n;i++)if(!G[i].v)p=i;
????????for(i=0;i<3;i++)
????????{
????????????????puts(S[i]);
????????????????(*(funcs[i]))(p);
????????????????puts("");
????????}
????????return 0;
}

void pre(int n)
{
????????if(n==-1)return;
????????printf(" %d",n);
????????pre(G[n].a);
????????pre(G[n].b);
????????return;
}

void ino(int n)
{
????????if(n==-1)return;
????????ino(G[n].a);
????????printf(" %d",n);
????????ino(G[n].b);
????????return;
}

void pos(int n)
{
????????if(n==-1)return;
????????pos(G[n].a);
????????pos(G[n].b);
????????printf(" %d",n);
????????return;
}

Compiler output:
main.c: In function 'main':
main.c:23:1: error: expected expression before '?' token
   23 | ????????????????G[l].v=G[r].v=1;
      | ^
main.c:24:1: error: expected expression before '?' token
   24 | ????????????????G[p].a=l;
      | ^
main.c:25:1: error: expected expression before '?' token
   25 | ????????????????G[p].b=r;
      | ^
main.c:26:1: error: expected expression before '?' token
   26 | ????????}
      | ^
main.c:27:1: error: expected expression before '?' token
   27 | ????????for(i=0;i<n;i++)if(!G[i].v)p=i;
      | ^
main.c:28:1: error: expected expression before '?' token
   28 | ????????for(i=0;i<3;i++)
      | ^
main.c:31:15: warning: trigraph ??( ignored, use -trigraphs to enable [-Wtrigraphs]
   31 | ????????????????(*(funcs[i]))(p);
main.c: In function 'pre':
main.c:39:1: error: expected expression before '?' token
   39 | ????????if(n==-1)return;
      | ^
main.c:40:1: error: expected expression before '?' token
   40 | ????????printf(" %d",n);
      | ^
main.c:41:1: error: expected expression before '?' token
   41 | ????????pre(G[n].a);
      | ^
main.c:42:1: error: expected expression before '?' token
   42 | ????????pre(G[n].b);
      | ^
main.c:43:1: error: expected expression before '?' token
   43 | ????????return;
      | ^
main.c: In function 'ino':
main.c:48:1: error: expected expression before '?' token
   48 | ????????if(n==-1)return;
      | ^
main.c:49:1: error: expected expression before '?' token
   49 | ????????ino(G[n].a);
      | ^
main.c:50:1: error: expected expression before '?' token
   50 | ????????printf(" %d",n);
      | ^
main.c:51:1: error: expected expression before '?' token
   51 | ????????ino(G[n].b);
      | ^
main.c:52:1: error: expected expression before '?' token
   52 | ????????return;
      | ^
main.c: In function 'pos':
main.c:57:1: error: expected expression before '?' token
   57 | ????????if(n==-1)return;
      | ^
main.c:58:1: error: expected expression before '?' token
   58 | ????????pos(G[n].a);
      | ^
main.c:59:1: error: expected expression before '?' token
   59 | ????????pos(G[n].b);
      | ^
main.c:60:1: error: expected expression before '?' token
   60 | ????????printf(" %d",n);
      | ^
main.c:61:1: error: expected expression before '?' token
   61 | ????????return;
      | ^