Main.c: In function ‘main’:
Main.c:5:26: error: expected ‘,’ or ‘;’ before ‘)’ token
FILE *f= fopen("","r"));
^
Main.c:11:8: warning: implicit declaration of function ‘exit’ [-Wimplicit-function-declaration]
exit(1);
^~~~
Main.c:11:8: warning: incompatible implicit declaration of built-in function ‘exit’
Main.c:11:8: note: include ‘’ or provide a declaration of ‘exit’
Main.c:17:11: error: ‘fptr’ undeclared (first use in this function); did you mean ‘fputs’?
fclose(fptr);
^~~~
fputs
Main.c:17:11: note: each undeclared identifier is reported only once for each function it appears in
Main.c:14:4: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d", &num);
^~~~~~~~~~~~~~~~~~~~