Borderou de evaluare (job #747236)

Utilizator avatar todeila_antonio Todeila Antonio todeila_antonio IP ascuns
Problemă Trei Divizori (clasa a 6-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 24 nov. 2023 21:28:45 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:24:13: error: 'prim' was not declared in this scope 24 | if( n< 2) prim = 0; | ^~~~ main.cpp:25:35: error: 'prim' was not declared in this scope 25 | else if(n != 2 && n % 2 == 0) prim = 0; | ^~~~ main.cpp:28:16: error: 'prim' was not declared in this scope 28 | if(n % d == 0) prim = 0; | ^~~~ main.cpp:29:8: error: 'prim' was not declared in this scope 29 | if(prim == 3) cout << n << " "; | ^~~~ main.cpp:22:11: warning: unused variable 'm' [-Wunused-variable] 22 | int n, m, nr = 0, nrd = 0, d; | ^ main.cpp:22:22: warning: unused variable 'nrd' [-Wunused-variable] 22 | int n, m, nr = 0, nrd = 0, d; | ^~~