Borderou de evaluare (job #629026)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Proxima (clasa a 5-a) | Compilator | c-32 |
Rundă | Concurs 03 | IQ Academy | clasa a 5-a | Status | evaluat |
Dată | 30 ian. 2022 11:40:40 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'main':
main.c:9:27: error: 'a' undeclared (first use in this function)
9 | fscanf( fin, "%d", &C, &a);
| ^
main.c:9:27: note: each undeclared identifier is reported only once for each function it appears in
main.c:19:31: error: expected ';' before 'c'
19 | fscanf(fin, "%d", &a )
| ^
| ;
20 | c=a;
| ~
main.c:21:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
21 | if( c = '*')
| ^
main.c:21:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
21 | if( c = '*')
| ^~
main.c:23:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
23 | nc=nc+1;
| ^~
main.c:24:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
24 | if( c = ' ')
| ^
main.c:26:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
26 | if( c = '+')
| ^
main.c:26:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
26 | if( c = '+')
| ^~
main.c:28:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
28 | nrplus=nrplus+1;
| ^~~~~~
main.c:29:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
29 | if( c = '|')
| ^
main.c:34:17: error: expected ';' before '}' token
34 | fclose(fout)
| ^
| ;
35 | }
| ~
main.c:41:3: error: expected declaration or statement at end of input
41 | }
| ^
main.c:7:28: warning: unused variable 'nr1' [-Wunused-variable]
7 | int i,nsc,nc,C,nrsp,nrnr,nr1,nrplus;
| ^~~
main.c:7:7: warning: unused variable 'i' [-Wunused-variable]
7 | int i,nsc,nc,C,nrsp,nrnr,nr1,nrplus;
| ^