Borderou de evaluare (job #853779)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Bip | Compilator | cpp |
| Rundă | Arhiva de probleme | Status | evaluat |
| Dată | 19 feb. 2026 21:23:15 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:11:26: error: redeclaration of 'int cnt'
11 | int a,cnt=0,s=0,cs=0,cnt=0,ok=0,cif=0,cif2=0,cnt1=0,cnt2=0,ult;
| ^~~
main.cpp:11:11: note: 'int cnt' previously declared here
11 | int a,cnt=0,s=0,cs=0,cnt=0,ok=0,cif=0,cif2=0,cnt1=0,cnt2=0,ult;
| ^~~
main.cpp:26:9: error: 'cif1' was not declared in this scope; did you mean 'cif2'?
26 | cif1=s%10;
| ^~~~
| cif2
main.cpp:11:37: warning: unused variable 'cif' [-Wunused-variable]
11 | int a,cnt=0,s=0,cs=0,cnt=0,ok=0,cif=0,cif2=0,cnt1=0,cnt2=0,ult;
| ^~~
main.cpp:11:64: warning: unused variable 'ult' [-Wunused-variable]
11 | int a,cnt=0,s=0,cs=0,cnt=0,ok=0,cif=0,cif2=0,cnt1=0,cnt2=0,ult;
| ^~~