Borderou de evaluare (job #668479)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Bile1 (clasa a 7-a) | Compilator | c-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 10 oct. 2022 20:01:38 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c:4:1: error: unknown type name 'bool'
4 | bool v[2002][2002];
| ^~~~
main.c:3:1: note: 'bool' is defined in header '<stdbool.h>'; did you forget to '#include <stdbool.h>'?
2 | #include <stdlib.h>
+++ |+#include <stdbool.h>
3 |
main.c: In function 'main':
main.c:20:22: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'int' [-Wformat=]
20 | fscanf(fin,"%d",v1[i]);
| ~^ ~~~~~
| | |
| | int
| int *
main.c:12:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
12 | fscanf(fin,"%d%d%d",&n,&m,&p);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:15:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
15 | fscanf(fin,"%d%d",&a,&b);
| ^~~~~~~~~~~~~~~~~~~~~~~~
main.c:20:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
20 | fscanf(fin,"%d",v1[i]);
| ^~~~~~~~~~~~~~~~~~~~~~