Borderou de evaluare (job #857964)

Utilizator avatar Barbu_Darius Barbu Darius Barbu_Darius IP ascuns
Problemă Copii (clasa a 5-a) Compilator c
Rundă Arhiva de probleme Status evaluat
Dată 16 mar. 2026 19:19:30 Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'main': main.c:52:21: warning: unused variable 'z' [-Wunused-variable] 52 | long long y,z,d; | ^ main.c: At top level: main.c:85:13: error: expected identifier or '(' before 'while' 85 | while (t % 2 == 0) | ^~~~~ main.c:87:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token 87 | cnt2++; | ^~ main.c:88:13: error: expected identifier or '(' before 'while' 88 | while (t % 5 == 0) | ^~~~~ main.c:90:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token 90 | cnt5++; | ^~ main.c:92:13: warning: data definition has no type or storage class 92 | result = (result * t) % mod; | ^~~~~~ main.c:92:13: error: type defaults to 'int' in declaration of 'result' [-Wimplicit-int] main.c:92:32: error: 't' undeclared here (not in a function) 92 | result = (result * t) % mod; | ^ main.c:92:37: error: 'mod' undeclared here (not in a function); did you mean 'fmod'? 92 | result = (result * t) % mod; | ^~~ | fmod main.c:93:9: error: expected identifier or '(' before '}' token 93 | } | ^ main.c:95:9: warning: data definition has no type or storage class 95 | extra2 = cnt2 - cnt5; | ^~~~~~ main.c:95:9: error: type defaults to 'int' in declaration of 'extra2' [-Wimplicit-int] main.c:95:9: error: conflicting types for 'extra2'; have 'int' main.c:94:19: note: previous declaration of 'extra2' with type 'long long int' 94 | long long extra2; | ^~~~~~ main.c:95:18: error: 'cnt2' undeclared here (not in a function) 95 | extra2 = cnt2 - cnt5; | ^~~~ main.c:95:25: error: 'cnt5' undeclared here (not in a function) 95 | extra2 = cnt2 - cnt5; | ^~~~ main.c:96:9: error: expected identifier or '(' before 'while' 96 | while (extra2-- > 0) | ^~~~~ main.c:99:10: warning: data definition has no type or storage class 99 | pow10 = 1;