Borderou de evaluare (job #853622)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Divizor (clasa a 5-a) | Compilator | cpp |
| Rundă | Arhiva de probleme | Status | evaluat |
| Dată | 18 feb. 2026 20:29:06 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:20:18: error: 'maxnrdiv' was not declared in this scope; did you mean 'maxdiv'?
20 | if(nrdiv>maxnrdiv)
| ^~~~~~~~
| maxdiv
main.cpp:36:19: error: expected ';' before '<' token
36 | for(int i=0, i<nrcif; i++)
| ^
| ;
main.cpp:36:19: error: expected primary-expression before '<' token
main.cpp:46:18: error: 'maxnrdiv' was not declared in this scope; did you mean 'maxdiv'?
46 | if(nrdiv>maxnrdiv)
| ^~~~~~~~
| maxdiv
main.cpp:60:19: error: 'maxnrdiv' was not declared in this scope; did you mean 'maxdiv'?
60 | if(nrdiv==maxnrdiv)
| ^~~~~~~~
| maxdiv
main.cpp:10:35: warning: unused variable 'gasit' [-Wunused-variable]
10 | int a,nrcif=0,ca,put=10000,nr,gasit=0,nrdiv=0,maxdiv=0;
| ^~~~~
main.cpp:10:51: warning: unused variable 'maxdiv' [-Wunused-variable]
10 | int a,nrcif=0,ca,put=10000,nr,gasit=0,nrdiv=0,maxdiv=0;
| ^~~~~~
main.cpp: At global scope:
main.cpp:69:5: error: expected unqualified-id before 'return'
69 | return 0;
| ^~~~~~
main.cpp:70:1: error: expected declaration before '}' token
70 | }
| ^