Borderou de evaluare (job #745926)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Seif2 (clasa a 5-a) | Compilator | c-32 |
Rundă | Tema 15 clasa a 5-a | Status | evaluat |
Dată | 18 nov. 2023 17:46:07 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'main':
main.c:5:16: warning: unused variable 'fout' [-Wunused-variable]
5 | FILE *fin,*fout;
| ^~~~
main.c: At top level:
main.c:25:5: warning: data definition has no type or storage class
25 | fclose(fin);
| ^~~~~~
main.c:25:5: warning: type defaults to 'int' in declaration of 'fclose' [-Wimplicit-int]
main.c:25:5: warning: parameter names (without types) in function declaration
main.c:26:5: warning: data definition has no type or storage class
26 | fout=fopen("seif2.out","w");
| ^~~~
main.c:26:5: warning: type defaults to 'int' in declaration of 'fout' [-Wimplicit-int]
main.c:26:10: warning: initialization of 'int' from 'FILE *' makes integer from pointer without a cast [-Wint-conversion]
26 | fout=fopen("seif2.out","w");
| ^~~~~
main.c:26:10: error: initializer element is not constant
main.c:27:18: error: expected ')' before string constant
27 | fprintf(fout,"%d",max);
| ^~~~
| )
main.c:28:5: error: expected identifier or '(' before 'return'
28 | return 0;
| ^~~~~~
main.c:29:1: error: expected identifier or '(' before '}' token
29 | }
| ^
main.c: In function 'main':
main.c:8:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
8 | fscanf(fin,"%d\n%d",&n,&a);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:11:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
11 | fscanf(fin,"%d",&b);
| ^~~~~~~~~~~~~~~~~~~