prog.c:7:21: error: expected declaration specifiers or '...' before ')' token
int InputStruct(int,);
^
prog.c:8:25: error: expected '{' before ')' token
void OutputStruct(struct);
^
prog.c: In function 'main':
prog.c:21:5: warning: implicit declaration of function 'gets' [-Wimplicit-function-declaration]
gets(filename);
^
prog.c:36:9: warning: implicit declaration of function 'InputStruct' [-Wimplicit-function-declaration]
InputStruct(i,);
^
prog.c:36:23: error: expected expression before ')' token
InputStruct(i,);
^
prog.c:37:9: error: too few arguments to function 'OutputStruct'
OutputStruct();
^
prog.c:8:6: note: declared here
void OutputStruct(struct);
^
prog.c:39:12: error: incompatible type for argument 1 of 'fwrite'
fwrite(*pRing,sizeof(*pRing),pFile);
^
In file included from prog.c:4:0:
/usr/include/stdio.h:715:15: note: expected 'const void * restrict' but argument is of type 'struct <anonymous>'
extern size_t fwrite (const void *__restrict __ptr, size_t __size,
^
prog.c:39:34: warning: passing argument 3 of 'fwrite' makes integer from pointer without a cast [-Wint-conversion]
fwrite(*pRing,sizeof(*pRing),pFile);
^
In file included from prog.c:4:0:
/usr/include/stdio.h:715:15: note: expected 'size_t {aka unsigned int}' but argument is of type 'FILE * {aka struct _IO_FILE *}'
extern size_t fwrite (const void *__restrict __ptr, size_t __size,
^
prog.c:39:5: error: too few arguments to function 'fwrite'
fwrite(*pRing,sizeof(*pRing),pFile);
^
prog.c:40:11: error: incompatible type for argument 1 of 'fread'
fread(*pRing,sizeof(*pRing),pFile);
^
In file included from prog.c:4:0:
/usr/include/stdio.h:709:15: note: expected 'void * restrict' but argument is of type 'struct <anonymous>'
extern size_t fread (void *__restrict __ptr, size_t __size,
^
prog.c:40:33: warning: passing argument 3 of 'fread' makes integer from pointer without a cast [-Wint-conversion]
fread(*pRing,sizeof(*pRing),pFile);
^
In file included from prog.c:4:0:
/usr/include/stdio.h:709:15: note: expected 'size_t {aka unsigned int}' but argument is of type 'FILE * {aka struct _IO_FILE *}'
extern size_t fread (void *__restrict __ptr, size_t __size,
^
prog.c:40:5: error: too few arguments to function 'fread'
fread(*pRing,sizeof(*pRing),pFile);
^
In file included from prog.c:4:0:
/usr/include/stdio.h:709:15: note: declared here
extern size_t fread (void *__restrict __ptr, size_t __size,
^
prog.c:41:5: warning: implicit declaration of function 'SeachMaxMin' [-Wimplicit-function-declaration]
SeachMaxMin();
^
prog.c: At top level:
prog.c:45:23: error: expected declaration specifiers or '...' before ')' token
int InputStruct(int i,)
^
prog.c:59:26: warning: 'struct ring' declared inside parameter list
void OutputStruct(struct ring *pStruct)
^
prog.c:59:26: warning: its scope is only this definition or declaration, which is probably not what you want
prog.c:59:6: error: conflicting types for 'OutputStruct'
void OutputStruct(struct ring *pStruct)
^
prog.c:8:6: note: previous declaration of 'OutputStruct' was here
void OutputStruct(struct);
^
prog.c: In function 'OutputStruct':
prog.c:61:64: error: 'struct <anonymous>' has no member named 'NumberRing'
printf("\nNumber ring:%d\tx=%f\ty=%d\tr=%d\tR=%d\t\n",pRing->NumberRing,pRing->x,pRing->y,pRing->r,pRing->R);
^
prog.c: At top level:
prog.c:64:18: error: expected declaration specifiers or '...' before '*' token
int SearchMaxMin(*pStruct,int n)
^