Borderou de evaluare (job #3371481)
Raport evaluator
Compilare:
main.c: In function 'main':
main.c:52:16: warning: passing argument 1 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types]
52 | 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:52:22: warning: passing argument 2 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types]
52 | 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:53:16: warning: passing argument 1 of 'fclose' from incompatible pointer type [-Wincompatible-pointer-types]
53 | fclose("kfib.in");
| ^~~~~~~~~
| |
| char *
/usr/include/stdio.h:178:26: note: expected 'FILE *' but argument is of type 'char *'
178 | extern int fclose (FILE *__stream);
| ~~~~~~^~~~~~~~
main.c:59:17: warning: passing argument 1 of 'fprintf' from incompatible pointer type [-Wincompatible-pointer-types]
59 | fprintf("%d\n", first_element * matrix[0][0]);
| ^~~~~~
| |
| char *
/usr/include/stdio.h:350:38: note: expected 'FILE * restrict' but argument is of type 'char *'
350 | extern int fprintf (FILE *__restrict __stream,
| ~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:59:39: warning: passing argument 2 of 'fprintf' makes pointer from integer without a cast [-Wint-conversion]
59 | fprintf("%d\n", first_element * matrix[0][0]);
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~
| |
| int
/usr/include/stdio.h:351:44: note: expected 'const char * restrict' but argument is of type 'int'
351 | const char *__restrict __format, ...);
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:60:16: warning: passing argument 1 of 'fclose' from incompatible pointer type [-Wincompatible-pointer-types]
60 | fclose("kfib.out");
| ^~~~~~~~~~
| |
| char *
/usr/include/stdio.h:178:26: note: expected 'FILE *' but argument is of type 'char *'
178 | extern int fclose (FILE *__stream);
| ~~~~~~^~~~~~~~
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 3ms | 368kb | Killed by Signal 11 | 0 |
| 2 | 3ms | 364kb | Killed by Signal 11 | 0 |
| 3 | 3ms | 372kb | Killed by Signal 11 | 0 |
| 4 | 3ms | 368kb | Killed by Signal 11 | 0 |
| 5 | 3ms | 368kb | Killed by Signal 11 | 0 |
| 6 | 3ms | 364kb | Killed by Signal 11 | 0 |
| 7 | 3ms | 368kb | Killed by Signal 11 | 0 |
| 8 | 3ms | 364kb | Killed by Signal 11 | 0 |
| 9 | 3ms | 368kb | Killed by Signal 11 | 0 |
| 10 | 3ms | 368kb | Killed by Signal 11 | 0 |
| 11 | 0ms | 364kb | Killed by Signal 11 | 0 |
| 12 | 0ms | 368kb | Killed by Signal 11 | 0 |
| 13 | 0ms | 368kb | Killed by Signal 11 | 0 |
| 14 | 0ms | 368kb | Killed by Signal 11 | 0 |
| 15 | 0ms | 372kb | Killed by Signal 11 | 0 |
| 16 | 0ms | 364kb | Killed by Signal 11 | 0 |
| 17 | 0ms | 364kb | Killed by Signal 11 | 0 |
| 18 | 0ms | 368kb | Killed by Signal 11 | 0 |
| 19 | 0ms | 372kb | Killed by Signal 11 | 0 |
| 20 | 0ms | 364kb | Killed by Signal 11 | 0 |
| Punctaj total | 0 |