Borderou de evaluare (job #814742)

Utilizator avatar ArghirBianca Arghir Bianca-Elena ArghirBianca IP ascuns
Problemă Greieri (clasa a 5-a) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 14 mar. 2025 12:36:40 Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'main': main.c:11:5: error: 'prod' undeclared (first use in this function) 11 | prod=n*(n-1); | ^~~~ main.c:11:5: note: each undeclared identifier is reported only once for each function it appears in main.c:14:5: error: 'poz' undeclared (first use in this function) 14 | poz=n+1-m/(n-1); | ^~~ main.c:19:5: error: 'v' undeclared (first use in this function) 19 | v[0]=poz; | ^ main.c:20:10: warning: statement with no effect [-Wunused-value] 20 | for(i==1;i<n;i++){ | ~^~~ main.c:23:16: error: lvalue required as left operand of assignment 23 | v[1=1]; | ^ main.c:9:25: warning: unused variable 'rest' [-Wunused-variable] 9 | long long n, m, j, rest, i,x; | ^~~~ main.c:9:22: warning: unused variable 'j' [-Wunused-variable] 9 | long long n, m, j, rest, i,x; | ^ main.c:10:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 10 | fscanf(fin, "%lld%lld", &n, &m); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~