Borderou de evaluare (job #604283)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Extraprime (clasa a 5-a) | Compilator | c-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 21 aug. 2021 12:50:03 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'main':
main.c:25:8: error: redeclaration of 'i' with no linkage
25 | int i, j;
| ^
main.c:21:8: note: previous declaration of 'i' was here
21 | int i;
| ^
main.c:26:9: error: redeclaration of 'a' with no linkage
26 | int a,b,cnt=0,minnr=-1,maxnr,nr,put,ci;
| ^
main.c:20:8: note: previous declaration of 'a' was here
20 | int a, b;
| ^
main.c:26:11: error: redeclaration of 'b' with no linkage
26 | int a,b,cnt=0,minnr=-1,maxnr,nr,put,ci;
| ^
main.c:20:11: note: previous declaration of 'b' was here
20 | int a, b;
| ^
main.c:38:5: error: 'cin' undeclared (first use in this function); did you mean 'ci'?
38 | cin>>a>>b;
| ^~~
| ci
main.c:38:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:26:41: warning: unused variable 'ci' [-Wunused-variable]
26 | int a,b,cnt=0,minnr=-1,maxnr,nr,put,ci;
| ^~