Borderou de evaluare (job #782447)

Utilizator avatar Basarab Grigore Mihai Sorin Basarab IP ascuns
Problemă Bmedia (clasa a 9-a) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 13 iul. 2024 20:49:39 Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'main': main.c:8:22: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'long long int *' [-Wformat=] 8 | fscanf(fin, "%I64d", &n); | ~~~~^ ~~ | | | | | long long int * | int * | %I64lld main.c:12:14: error: expected ';' before 'while' 12 | aux=i | ^ | ; 13 | while(aux>0){ | ~~~~~ main.c:19:24: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=] 19 | fprintf(fout, "%I64d", t); | ~~~~^ ~ | | | | int long long int | %I64lld main.c:6:11: warning: variable 'aux' set but not used [-Wunused-but-set-variable] 6 | int i,aux; | ^~~ main.c:8:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 8 | fscanf(fin, "%I64d", &n); | ^~~~~~~~~~~~~~~~~~~~~~~~