Borderou de evaluare (job #605310)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Tastatura2 (clasa a 5-a) | Compilator | c-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 3 sept. 2021 14:00:48 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'main':
main.c:28:26: error: 'c' undeclared (first use in this function); did you mean 'ch'?
28 | nr=nr*10+(10+c-'0'-k)%10;
| ^
| ch
main.c:28:26: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:14: warning: unused variable 'ult' [-Wunused-variable]
13 | char ch, ult;
| ^~~
main.c:12:23: warning: unused variable 'p' [-Wunused-variable]
12 | int nr=0, s=0, k, p=0, d;
| ^
main.c:14:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
14 | fscanf(fin, "%d", &k);
| ^~~~~~~~~~~~~~~~~~~~~