Borderou de evaluare (job #733515)

Utilizator avatar alexradita2 alexandru radita alexradita2 IP ascuns
Problemă Divprimi (clasa a 10-a) Compilator cpp-32
Rundă Tema 2 clasa a 6-a Status evaluat
Dată 24 sept. 2023 20:20:32 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:13:34: warning: unused variable 'b' [-Wunused-variable] 13 | for (int x = 2, a = n[j],b=n[j+1],d_a=0,d_b=0;x<=a;) | ^ main.cpp:13:49: warning: unused variable 'd_b' [-Wunused-variable] 13 | for (int x = 2, a = n[j],b=n[j+1],d_a=0,d_b=0;x<=a;) | ^~~ main.cpp:15:30: error: 'b' was not declared in this scope 15 | for (int x = 2; x <= b;) | ^ main.cpp:16:32: error: 'd_b' was not declared in this scope 16 | while (b % x == 0){d_b++; b/= x;} | ^~~ main.cpp:17:13: error: 'd_a' was not declared in this scope 17 | if (d_a>d_b||(d_a==d_b&&n[j]>n[j+1])) { | ^~~ main.cpp:17:17: error: 'd_b' was not declared in this scope 17 | if (d_a>d_b||(d_a==d_b&&n[j]>n[j+1])) { | ^~~ main.cpp: At global scope: main.cpp:26:5: error: expected declaration before '}' token 26 | } | ^ main.cpp:28:5: error: expected unqualified-id before 'return' 28 | return 0; | ^~~~~~ main.cpp:29:1: error: expected declaration before '}' token 29 | } | ^