Borderou de evaluare (job #779765)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Reorganizare (clasa a 6-a) | Compilator | c-32 |
| Rundă | Arhiva de probleme | Status | evaluat |
| Dată | 7 iun. 2024 19:01:15 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'main':
main.c:10:33: error: redeclaration of 'ci' with no linkage
10 | int n, i, cf, ci, j=0, min, ci, uc, pc;
| ^~
main.c:10:19: note: previous declaration of 'ci' with type 'int'
10 | int n, i, cf, ci, j=0, min, ci, uc, pc;
| ^~
main.c:27:9: error: 'p' undeclared (first use in this function); did you mean 'pc'?
27 | p=pow(j, 10);
| ^
| pc
main.c:27:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:38:16: error: lvalue required as left operand of assignment
38 | if (j+1=i) {
| ^
main.c:39:21: error: expected ';' before 'fprintf'
39 | pc=nr%10
| ^
| ;
40 | fprintf (fout, "%d", pc);
| ~~~~~~~
main.c:10:41: warning: variable 'pc' set but not used [-Wunused-but-set-variable]
10 | int n, i, cf, ci, j=0, min, ci, uc, pc;
| ^~
main.c:14:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
14 | fscanf (fin, "%d", &n);
| ^~~~~~~~~~~~~~~~~~~~~~