Why is my program directly crashing？(C) :     typedef int score;
    typedef struct tnode *ptrtonode;
    typedef ptrtonode tree; 
    struct tnode{
	     score s;
	     tree next;
	     bool know;
    }; 

    scanf("%d",&n);
    tree t[n];

    for(i=0;i<n;i++){
		scanf("%d",&x);
	    t[i]->s=x;
		t[i]->next=NULL;
		t[i]->know=false;
	}

This is a code snippet.

When it runs 't[i]->s=x;', this program will crash.

I do not know why.

Thanks!