Borderou de evaluare (job #796070)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Cabina (clasa a 5-a) | Compilator | c-32 |
Rundă | Concurs 01 | IQ Academy | clasa a 5-a | Status | evaluat |
Dată | 19 nov. 2024 10:57:52 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'main':
main.c:15:13: error: invalid operands to binary >> (have 'FILE *' and 'int')
15 | fout>>o;
| ^~
main.c:18:5: error: 'close' undeclared (first use in this function); did you mean 'fclose'?
18 | fin(close);
| ^~~~~
| fclose
main.c:18:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:18:1: error: called object 'fin' is not a function or function pointer
18 | fin(close);
| ^~~
main.c:5:8: note: declared here
5 | {FILE *fin,*fout;
| ^~~
main.c:23:1: error: called object 'fout' is not a function or function pointer
23 | fout(close);
| ^~~~
main.c:5:13: note: declared here
5 | {FILE *fin,*fout;
| ^~~~
main.c:9:1: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
9 | fscanf(fin,"%d",&n);
| ^~~~~~~~~~~~~~~~~~~
main.c:12:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
12 | fscanf(fin,"%d",&a);
| ^~~~~~~~~~~~~~~~~~~
main.c:13:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
13 | fscanf(fin,"%d",&b);
| ^~~~~~~~~~~~~~~~~~~