prog.c: In function ‘creat’:
prog.c:14:17: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
head=&a;a.next=&b;b.next=&c;c.next=&d;d.next=NULL;p=head;
^
prog.c:14:27: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
head=&a;a.next=&b;b.next=&c;c.next=&d;d.next=NULL;p=head;
^
prog.c:14:37: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
head=&a;a.next=&b;b.next=&c;c.next=&d;d.next=NULL;p=head;
^
prog.c:17:3: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
for(m=1;m<5;m++);
^~~
prog.c:18:7: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’
if(in>=p->num1&&in<=p->num2)
^~
prog.c:21:10: warning: statement with no effect [-Wunused-value]
p->next;
~^~~~~~
prog.c:22:7: error: ‘i’ undeclared (first use in this function)
for(i=1;i<4;i++);
^
prog.c:22:7: note: each undeclared identifier is reported only once for each function it appears in
prog.c:22:3: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
for(i=1;i<4;i++);
^~~
prog.c:23:7: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’
if(score[i]==in)
^~
prog.c:23:10: error: ‘score’ undeclared (first use in this function)
if(score[i]==in)
^~~~~
prog.c:26:10: warning: statement with no effect [-Wunused-value]
q->next;
~^~~~~~
prog.c:27:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^