Borderou de evaluare (job #790936)

Utilizator avatar MARIARADU Radu Maria Sofia MARIARADU IP ascuns
Problemă La școală (clasa a 5-a) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 23 oct. 2024 13:38:31 Scor 0

Raport evaluator

Compilare: main.c: In function 'main': main.c:12:10: warning: passing argument 1 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types] 12 | fscanf("%d",&n); | ^~~~ | | | char * In file included from main.c:1: /usr/include/stdio.h:422:37: note: expected 'FILE * restrict' but argument is of type 'char *' 422 | extern int fscanf (FILE *__restrict __stream, | ~~~~~~~~~~~~~~~~~^~~~~~~~ main.c:12:15: warning: passing argument 2 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types] 12 | fscanf("%d",&n); | ^~ | | | int * /usr/include/stdio.h:423:43: note: expected 'const char * restrict' but argument is of type 'int *' 423 | const char *__restrict __format, ...) __wur __nonnull ((1)); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ main.c:14:5: warning: implicit declaration of function 'sqrt' [-Wimplicit-function-declaration] 14 | r=sqrt(n); | ^~~~ main.c:3:1: note: include '<math.h>' or provide a declaration of 'sqrt' 2 | #include <stdlib.h> +++ |+#include <math.h> 3 | main.c:14:5: warning: incompatible implicit declaration of built-in function 'sqrt' [-Wbuiltin-declaration-mismatch] 14 | r=sqrt(n); | ^~~~ main.c:14:5: note: include '<math.h>' or provide a declaration of 'sqrt' main.c:20:11: warning: passing argument 1 of 'fprintf' from incompatible pointer type [-Wincompatible-pointer-types] 20 | fprintf("%d ",k); | ^~~~~ | | | char * In file included from /usr/include/stdio.h:980: /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:20:17: warning: passing argument 2 of 'fprintf' makes pointer from integer without a cast [-Wint-conversion] 20 | fprintf("%d ",k); | ^ | | | 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:22:11: warning: passing argument 1 of 'fprintf' from incompatible pointer type [-Wincompatible-pointer-types] 22 | fprintf("%d ", nrp); | ^~~~~ | |
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 245 kb Incorect 0
2 1 ms 241 kb Incorect 0
3 1 ms 245 kb Incorect 0
4 1 ms 245 kb Incorect 0
5 1 ms 245 kb Incorect 0
6 1 ms 245 kb Incorect 0
7 1 ms 245 kb Incorect 0
8 1 ms 507 kb Incorect 0
9 1 ms 266 kb Incorect 0
10 3 ms 380 kb Incorect 0
Punctaj total 0