Borderou de evaluare (job #790856)

Utilizator avatar NeaguIoan Negu Catalin NeaguIoan IP ascuns
Problemă Medalion (clasa a 6-a) Compilator c-32
Rundă Tema 12 Clasa a 6-a Status evaluat
Dată 22 oct. 2024 19:50:53 Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'main': main.c:8:23: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'long long int *' [-Wformat=] 8 | fscanf( in, "%d%d%d", &k, &n, &p ); | ~^ ~~ | | | | int * long long int * | %lld main.c:8:25: warning: format '%d' expects argument of type 'int *', but argument 4 has type 'long long int *' [-Wformat=] 8 | fscanf( in, "%d%d%d", &k, &n, &p ); | ~^ ~~ | | | | int * long long int * | %lld main.c:8:27: warning: format '%d' expects argument of type 'int *', but argument 5 has type 'long long int *' [-Wformat=] 8 | fscanf( in, "%d%d%d", &k, &n, &p ); | ~^ ~~ | | | | int * long long int * | %lld main.c:35:35: error: expected identifier or '(' before ';' token 35 | long long s, maxi = 0, i, ; | ^ main.c:44:25: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=] 44 | fprintf( out, "%d\n", maxi ); | ~^ ~~~~ | | | | int long long int | %lld main.c:47:29: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=] 47 | fprintf( out, "%d\n", k ); | ~^ ~ | | | | int long long int | %lld main.c:49:25: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=] 49 | fprintf( out, "%d\n", val ); | ~^ ~~~ | | | | int long long int | %lld main.c:48:5: warning: this 'else' clause does not guard... [-Wmisleading-indentation] 48 | else | ^~~~ main.c:50:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' 50 | fclose(out); | ^~~~~~ main.c:8:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 8 | fscanf( in, "%d%d%d", &k, &n, &p ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~