Borderou de evaluare (job #620397)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Plaja 2 (clasa a 5-a) | Compilator | c-32 |
| Rundă | Arhiva de probleme | Status | evaluat |
| Dată | 11 dec. 2021 12:14:54 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'main':
main.c:9:17: warning: too many arguments for format [-Wformat-extra-args]
9 | fscanf( fin, "%d",&n,&m,&i,&r,&x);
| ^~~~
main.c:20:22: error: 'a' undeclared (first use in this function)
20 | fprintf(fout,"%d",a);
| ^
main.c:20:22: note: each undeclared identifier is reported only once for each function it appears in
main.c: At top level:
main.c:27:18: error: expected ')' before string constant
27 | fprintf(fout,"%d",n);
| ^~~~
| )
main.c:28:4: warning: data definition has no type or storage class
28 | fclose (fin);
| ^~~~~~
main.c:28:4: warning: type defaults to 'int' in declaration of 'fclose' [-Wimplicit-int]
main.c:28:4: warning: parameter names (without types) in function declaration
main.c:29:4: warning: data definition has no type or storage class
29 | fclose (fout);
| ^~~~~~
main.c:29:4: warning: type defaults to 'int' in declaration of 'fclose' [-Wimplicit-int]
main.c:29:4: warning: parameter names (without types) in function declaration
main.c:30:4: error: expected identifier or '(' before 'return'
30 | return 0;
| ^~~~~~
main.c:31:2: error: expected identifier or '(' before '}' token
31 | }
| ^
main.c: In function 'main':
main.c:9:4: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
9 | fscanf( fin, "%d",&n,&m,&i,&r,&x);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~