/in/foo.c: In function 'main':
/in/foo.c:19:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
scanf("%d",&s.N);
^~~~~
/in/foo.c:19:15: error: '(S *)&s' is a pointer; did you mean to use '->'?
scanf("%d",&s.N);
^
->
/in/foo.c:20:12: error: 'N' undeclared (first use in this function)
for(i=0;i<N;i++)
^
/in/foo.c:20:12: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:22:17: error: stray '\357' in program
for(i=0;i<N;i++)
^
/in/foo.c:22:18: error: stray '\274' in program
for(i=0;i<N;i++)
^
/in/foo.c:22:19: error: stray '\211' in program
for(i=0;i<N;i++)
^
/in/foo.c:23:3: error: expected ')' before '{' token
{
^
/in/foo.c:48:10: warning: unknown escape sequence: '\d'
printf("%s\n%d\n%\d",name1[10],sum1,sum2);
^~~~~~~~~~~~~
/in/foo.c:53:1: error: expected expression before '}' token
}
^
/in/foo.c:17:19: warning: unused variable 'sum2' [-Wunused-variable]
int sum=0,sum1=0,sum2=0;
^~~~
/in/foo.c:17:12: warning: unused variable 'sum1' [-Wunused-variable]
int sum=0,sum1=0,sum2=0;
^~~~
/in/foo.c:17:6: warning: unused variable 'sum' [-Wunused-variable]
int sum=0,sum1=0,sum2=0;
^~~
/in/foo.c:16:18: warning: unused variable 'j' [-Wunused-variable]
int i,a[50]={0},j=1;
^
/in/foo.c:16:8: warning: unused variable 'a' [-Wunused-variable]
int i,a[50]={0},j=1;
^