Pagini recente »
Borderou de evaluare (job #726745)
|
Borderou de evaluare (job #603906)
|
Cod sursă (job #517773)
|
Borderou de evaluare (job #486570)
|
Borderou de evaluare (job #746656)
Borderou de evaluare (job #746656)
Raport evaluator
Compilare:
main.c: In function 'main':
main.c:7:12: warning: passing argument 1 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types]
7 | 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:7:18: warning: passing argument 2 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types]
7 | 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:15:13: warning: passing argument 1 of 'fprintf' from incompatible pointer type [-Wincompatible-pointer-types]
15 | fprintf("Ultima cifra a sumei este: %d\n", ultimaCifra);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| char *
In file included from /usr/include/stdio.h:906:
/usr/include/bits/stdio2.h:77:27: note: expected 'FILE * restrict' but argument is of type 'char *'
77 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...)
| ~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:15:48: warning: passing argument 2 of 'fprintf' makes pointer from integer without a cast [-Wint-conversion]
15 | fprintf("Ultima cifra a sumei este: %d\n", ultimaCifra);
| ^~~~~~~~~~~
| |
| int
/usr/include/bits/stdio2.h:77:60: note: expected 'const char * restrict' but argument is of type 'int'
77 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...)
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
main.c:7:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
7 | fscanf("%d", &n);
| ^~~~~~~~~~~~~~~~
Test |
Timp execuție |
Memorie folosită |
Mesaj |
Punctaj/test |
1
|
1 ms
|
249 kb
|
Incorect
|
0
|
2
|
1 ms
|
249 kb
|
Incorect
|
0
|
3
|
1 ms
|
249 kb
|
Incorect
|
0
|
4
|
1 ms
|
249 kb
|
Incorect
|
0
|
5
|
1 ms
|
249 kb
|
Incorect
|
0
|
6
|
1 ms
|
249 kb
|
Incorect
|
0
|
7
|
1 ms
|
249 kb
|
Incorect
|
0
|
8
|
1 ms
|
249 kb
|
Incorect
|
0
|
9
|
1 ms
|
249 kb
|
Incorect
|
0
|
10
|
1 ms
|
249 kb
|
Incorect
|
0
|
Punctaj total
|
0
|