Pagini recente » Borderou de evaluare (job #1549940) | Borderou de evaluare (job #1925078) | Borderou de evaluare (job #2125060) | Borderou de evaluare (job #1546147) | Borderou de evaluare (job #3256443)
Borderou de evaluare (job #3256443)
Raport evaluator
Compilare:
main.c: In function 'main':
main.c:11:12: warning: passing argument 1 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types]
11 | fscanf("%d", n);
| ^~~~
| |
| char *
In file included from main.c:1:
/usr/include/stdio.h:415:37: note: expected 'FILE * restrict' but argument is of type 'char *'
415 | extern int fscanf (FILE *__restrict __stream,
| ~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:11:18: warning: passing argument 2 of 'fscanf' makes pointer from integer without a cast [-Wint-conversion]
11 | fscanf("%d", n);
| ^
| |
| int
/usr/include/stdio.h:416:43: note: expected 'const char * restrict' but argument is of type 'int'
416 | const char *__restrict __format, ...) __wur;
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:14:16: warning: passing argument 1 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types]
14 | fscanf("%d%d", &a, b);
| ^~~~~~
| |
| char *
/usr/include/stdio.h:415:37: note: expected 'FILE * restrict' but argument is of type 'char *'
415 | extern int fscanf (FILE *__restrict __stream,
| ~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:14:24: warning: passing argument 2 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types]
14 | fscanf("%d%d", &a, b);
| ^~
| |
| int *
/usr/include/stdio.h:416:43: note: expected 'const char * restrict' but argument is of type 'int *'
416 | const char *__restrict __format, ...) __wur;
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:7:11: warning: variable 'r' set but not used [-Wunused-but-set-variable]
7 | FILE *r,*w;
| ^
main.c:11:5: warning: 'n' is used uninitialized [-Wuninitialized]
11 | fscanf("%d", n);
| ^~~~~~~~~~~~~~~
main.c:6:9: note: 'n' was declared here
6 | int n, a, b, d;
| ^
main.c:14:9: warning: 'b' may be used uninitialized [-Wmaybe-uninitialized]
14 | fscanf("%d%d", &a, b);
| ^~~~~~~~~~~~~~~~~~~~~
main.c:6:15: note: 'b' was declared here
6 | int n, a, b, d;
| ^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 0ms | 303kb | Incorect | 0 | 0 |
2 | 0ms | 303kb | Incorect | 0 | 0 |
3 | 0ms | 303kb | Incorect | 0 |
4 | 0ms | 303kb | Incorect | 0 | 0 |
5 | 0ms | 303kb | Incorect | 0 | 0 |
6 | 0ms | 303kb | Incorect | 0 | 0 |
7 | 0ms | 303kb | Incorect | 0 | 0 |
8 | 0ms | 303kb | Incorect | 0 |
9 | 0ms | 303kb | Incorect | 0 |
10 | 0ms | 303kb | Incorect | 0 |
Punctaj total | 0 |