Borderou de evaluare (job #682306)

Utilizator avatar Bunea_Cezar sugoma natz Bunea_Cezar IP ascuns
Problemă Gondola (clasa a 5-a) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 16 dec. 2022 16:52:06 Scor 0

Raport evaluator

Compilare: main.c: In function 'main': main.c:8:8: warning: passing argument 1 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types] 8 | fscanf("Gondola.in", "%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:12:20: warning: passing argument 1 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types] 12 | fscanf("Gondola.in", "%d", &p); | ^~~~~~~~~~~~ | | | 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:15:16: warning: passing argument 1 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types] 15 | fscanf("Gondola.in", "%d", &p); | ^~~~~~~~~~~~ | | | 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:33:1: warning: this 'else' clause does not guard... [-Wmisleading-indentation] 33 | else | ^~~~ main.c:35:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' 35 | if(maxdif<dif) | ^~ main.c:43:9: warning: passing argument 1 of 'fprintf' from incompatible pointer type [-Wincompatible-pointer-types] 43 | fprintf("Gondola.in", "%d", sum); | ^~~~~~~~~~~~ | | | char * In file included from /usr/include/stdio.h:894, from main.c:1: /usr/include/bits/stdio2.h:103:27: note: expected 'FILE * restrict' but argument is of type 'char *' 103 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) | ~~~~~~~~~~~~~~~~~^~~~~~~~ main.c:45:9: warning: passing argument 1 of 'fprintf' from incompatible pointer type [-Wincompatible-pointer-types] 45 | fprintf("Gondola.in", "%d", maxdif); | ^~~~~~~~~~~~ | | | char * In file included from /usr/include/stdio.h:894,
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 506 ms 118 kb Time limit exceeded 0
2 505 ms 118 kb Time limit exceeded 0
3 500 ms 118 kb Time limit exceeded 0
4 503 ms 118 kb Time limit exceeded 0
5 507 ms 118 kb Time limit exceeded 0
6 506 ms 118 kb Time limit exceeded 0
7 509 ms 118 kb Time limit exceeded 0
8 505 ms 118 kb Time limit exceeded 0
9 501 ms 118 kb Time limit exceeded 0
10 504 ms 118 kb Time limit exceeded 0
Punctaj total 0