Borderou de evaluare (job #655718)

Utilizator avatar Antoneo Radu Antonio Antoneo IP ascuns
Problemă Puteri2 (clasa a 8-a) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 16 iul. 2022 23:51:42 Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'main': main.c:18:19: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'long long int *' [-Wformat=] 18 | fscanf(fin, "%d", &n); | ~^ ~~ | | | | | long long int * | int * | %lld main.c:20:23: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'long long int *' [-Wformat=] 20 | fscanf(fin, "%d", a + i); | ~^ ~~~~~ | | | | int * long long int * | %lld main.c:22:23: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'long long int *' [-Wformat=] 22 | fscanf(fin, "%d", b + i); | ~^ ~~~~~ | | | | int * long long int * | %lld main.c:28:5: error: unknown type name 'fprlong'; did you mean 'long'? 28 | fprlong longf(fout, "%lld", sum); | ^~~~~~~ | long main.c:28:24: error: expected ')' before string constant 28 | fprlong longf(fout, "%lld", sum); | ^~~~~~~ | ) main.c:18:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 18 | fscanf(fin, "%d", &n); | ^~~~~~~~~~~~~~~~~~~~~ main.c:20:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 20 | fscanf(fin, "%d", a + i); | ^~~~~~~~~~~~~~~~~~~~~~~~ main.c:22:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 22 | fscanf(fin, "%d", b + i); | ^~~~~~~~~~~~~~~~~~~~~~~~