Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- exercise1.c: In function ‘main’:
- exercise1.c:12:5: warning: passing argument 1 of ‘fscanf’ from incompatible pointer type [enabled by default]
- fscanf("%d",&num1);
- ^
- In file included from /usr/include/features.h:374:0,
- from /usr/include/stdio.h:27,
- from exercise1.c:2:
- /usr/include/stdio.h:443:12: note: expected ‘struct FILE * __restrict__’ but argument is of type ‘char *’
- extern int __REDIRECT (fscanf, (FILE *__restrict __stream,
- ^
- exercise1.c:12:5: warning: passing argument 2 of ‘fscanf’ from incompatible pointer type [enabled by default]
- fscanf("%d",&num1);
- ^
- In file included from /usr/include/features.h:374:0,
- from /usr/include/stdio.h:27,
- from exercise1.c:2:
- /usr/include/stdio.h:443:12: note: expected ‘const char * __restrict__’ but argument is of type ‘int *’
- extern int __REDIRECT (fscanf, (FILE *__restrict __stream,
- ^
- exercise1.c:12:5: warning: format not a string literal and no format arguments [-Wformat-security]
- fscanf("%d",&num1);
- ^
- exercise1.c:14:5: warning: passing argument 1 of ‘fscanf’ from incompatible pointer type [enabled by default]
- fscanf("%d",&num2);
- ^
- In file included from /usr/include/features.h:374:0,
- from /usr/include/stdio.h:27,
- from exercise1.c:2:
- /usr/include/stdio.h:443:12: note: expected ‘struct FILE * __restrict__’ but argument is of type ‘char *’
- extern int __REDIRECT (fscanf, (FILE *__restrict __stream,
- ^
- exercise1.c:14:5: warning: passing argument 2 of ‘fscanf’ from incompatible pointer type [enabled by default]
- fscanf("%d",&num2);
- ^
- In file included from /usr/include/features.h:374:0,
- from /usr/include/stdio.h:27,
- from exercise1.c:2:
- /usr/include/stdio.h:443:12: note: expected ‘const char * __restrict__’ but argument is of type ‘int *’
- extern int __REDIRECT (fscanf, (FILE *__restrict __stream,
- ^
- exercise1.c:14:5: warning: format not a string literal and no format arguments [-Wformat-security]
- fscanf("%d",&num2);
- ^
- exercise1.c:15:5: error: too few arguments to function ‘fclose’
- fclose();
- ^
- In file included from exercise1.c:2:0:
- /usr/include/stdio.h:237:12: note: declared here
- extern int fclose (FILE *__stream);
- ^
- zergut@zergut-HP-15-Notebook-PC:~/C prog$ gcc exercise1.c
- exercise1.c: In function ‘main’:
- exercise1.c:12:5: warning: passing argument 1 of ‘fscanf’ from incompatible pointer type [enabled by default]
- fscanf("%d",&num1);
- ^
- In file included from /usr/include/features.h:374:0,
- from /usr/include/stdio.h:27,
- from exercise1.c:2:
- /usr/include/stdio.h:443:12: note: expected ‘struct FILE * __restrict__’ but argument is of type ‘char *’
- extern int __REDIRECT (fscanf, (FILE *__restrict __stream,
- ^
- exercise1.c:12:5: warning: passing argument 2 of ‘fscanf’ from incompatible pointer type [enabled by default]
- fscanf("%d",&num1);
- ^
- In file included from /usr/include/features.h:374:0,
- from /usr/include/stdio.h:27,
- from exercise1.c:2:
- /usr/include/stdio.h:443:12: note: expected ‘const char * __restrict__’ but argument is of type ‘int *’
- extern int __REDIRECT (fscanf, (FILE *__restrict __stream,
- ^
- exercise1.c:12:5: warning: format not a string literal and no format arguments [-Wformat-security]
- fscanf("%d",&num1);
- ^
- exercise1.c:14:5: warning: passing argument 1 of ‘fscanf’ from incompatible pointer type [enabled by default]
- fscanf("%d",&num2);
- ^
- In file included from /usr/include/features.h:374:0,
- from /usr/include/stdio.h:27,
- from exercise1.c:2:
- /usr/include/stdio.h:443:12: note: expected ‘struct FILE * __restrict__’ but argument is of type ‘char *’
- extern int __REDIRECT (fscanf, (FILE *__restrict __stream,
- ^
- exercise1.c:14:5: warning: passing argument 2 of ‘fscanf’ from incompatible pointer type [enabled by default]
- fscanf("%d",&num2);
- ^
- In file included from /usr/include/features.h:374:0,
- from /usr/include/stdio.h:27,
- from exercise1.c:2:
- /usr/include/stdio.h:443:12: note: expected ‘const char * __restrict__’ but argument is of type ‘int *’
- extern int __REDIRECT (fscanf, (FILE *__restrict __stream,
- ^
- exercise1.c:14:5: warning: format not a string literal and no format arguments [-Wformat-security]
- fscanf("%d",&num2);
- ^
- zergut@zergut-HP-15-Notebook-PC:~/C prog$ clear
- zergut@zergut-HP-15-Notebook-PC:~/C prog$ gcc exercise1.c
- exercise1.c: In function ‘main’:
- exercise1.c:12:5: warning: passing argument 1 of ‘fscanf’ from incompatible pointer type [enabled by default]
- fscanf("%d",&num1);
- ^
- In file included from /usr/include/features.h:374:0,
- from /usr/include/stdio.h:27,
- from exercise1.c:2:
- /usr/include/stdio.h:443:12: note: expected ‘struct FILE * __restrict__’ but argument is of type ‘char *’
- extern int __REDIRECT (fscanf, (FILE *__restrict __stream,
- ^
- exercise1.c:12:5: warning: passing argument 2 of ‘fscanf’ from incompatible pointer type [enabled by default]
- fscanf("%d",&num1);
- ^
- In file included from /usr/include/features.h:374:0,
- from /usr/include/stdio.h:27,
- from exercise1.c:2:
- /usr/include/stdio.h:443:12: note: expected ‘const char * __restrict__’ but argument is of type ‘int *’
- extern int __REDIRECT (fscanf, (FILE *__restrict __stream,
- ^
- exercise1.c:12:5: warning: format not a string literal and no format arguments [-Wformat-security]
- fscanf("%d",&num1);
- ^
- exercise1.c:14:5: warning: passing argument 1 of ‘fscanf’ from incompatible pointer type [enabled by default]
- fscanf("%d",&num2);
- ^
- In file included from /usr/include/features.h:374:0,
- from /usr/include/stdio.h:27,
- from exercise1.c:2:
- /usr/include/stdio.h:443:12: note: expected ‘struct FILE * __restrict__’ but argument is of type ‘char *’
- extern int __REDIRECT (fscanf, (FILE *__restrict __stream,
- ^
- exercise1.c:14:5: warning: passing argument 2 of ‘fscanf’ from incompatible pointer type [enabled by default]
- fscanf("%d",&num2);
- ^
- In file included from /usr/include/features.h:374:0,
- from /usr/include/stdio.h:27,
- from exercise1.c:2:
- /usr/include/stdio.h:443:12: note: expected ‘const char * __restrict__’ but argument is of type ‘int *’
- extern int __REDIRECT (fscanf, (FILE *__restrict __stream,
- ^
- exercise1.c:14:5: warning: format not a string literal and no format arguments [-Wformat-security]
- fscanf("%d",&num2);
- ^
- zergut@zergut-HP-15-Notebook-PC:~/C prog$ clear
- zergut@zergut-HP-15-Notebook-PC:~/C prog$ gcc exercise1.c
- exercise1.c: In function ‘main’:
- exercise1.c:12:5: warning: passing argument 1 of ‘fscanf’ from incompatible pointer type [enabled by default]
- fscanf("%d",&num1);
- ^
- In file included from /usr/include/features.h:374:0,
- from /usr/include/stdio.h:27,
- from exercise1.c:2:
- /usr/include/stdio.h:443:12: note: expected ‘struct FILE * __restrict__’ but argument is of type ‘char *’
- extern int __REDIRECT (fscanf, (FILE *__restrict __stream,
- ^
- exercise1.c:12:5: warning: passing argument 2 of ‘fscanf’ from incompatible pointer type [enabled by default]
- fscanf("%d",&num1);
- ^
- In file included from /usr/include/features.h:374:0,
- from /usr/include/stdio.h:27,
- from exercise1.c:2:
- /usr/include/stdio.h:443:12: note: expected ‘const char * __restrict__’ but argument is of type ‘int *’
- extern int __REDIRECT (fscanf, (FILE *__restrict __stream,
- ^
- exercise1.c:12:5: warning: format not a string literal and no format arguments [-Wformat-security]
- fscanf("%d",&num1);
- ^
- exercise1.c:14:5: warning: passing argument 1 of ‘fscanf’ from incompatible pointer type [enabled by default]
- fscanf("%d",&num2);
- ^
- In file included from /usr/include/features.h:374:0,
- from /usr/include/stdio.h:27,
- from exercise1.c:2:
- /usr/include/stdio.h:443:12: note: expected ‘struct FILE * __restrict__’ but argument is of type ‘char *’
- extern int __REDIRECT (fscanf, (FILE *__restrict __stream,
- ^
- exercise1.c:14:5: warning: passing argument 2 of ‘fscanf’ from incompatible pointer type [enabled by default]
- fscanf("%d",&num2);
- ^
- In file included from /usr/include/features.h:374:0,
- from /usr/include/stdio.h:27,
- from exercise1.c:2:
- /usr/include/stdio.h:443:12: note: expected ‘const char * __restrict__’ but argument is of type ‘int *’
- extern int __REDIRECT (fscanf, (FILE *__restrict __stream,
- ^
- exercise1.c:14:5: warning: format not a string literal and no format arguments [-Wformat-security]
- fscanf("%d",&num2);
- ^
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement