Borderou de evaluare (job #742490)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Apropiate1 (clasa a 6-a) | Compilator | c-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 4 nov. 2023 15:06:20 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c:4:6: error: variably modified 'ciur' at file scope
4 | char ciur[MAXN];
| ^~~~
main.c: In function 'main':
main.c:44:27: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'int' [-Wformat=]
44 | fscanf(fin, "%d", c1);
| ~^ ~~
| | |
| | int
| int *
main.c:47:27: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'int' [-Wformat=]
47 | fscanf(fin, "%d", c2);
| ~^ ~~
| | |
| | int
| int *
main.c:51:23: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'int' [-Wformat=]
51 | fscanf(fin, "%d", c1);
| ~^ ~~
| | |
| | int
| int *
main.c:54:23: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'int' [-Wformat=]
54 | fscanf(fin, "%d", c2);
| ~^ ~~
| | |
| | int
| int *
main.c:18:11: warning: unused variable 'fout' [-Wunused-variable]
18 | FILE *fout=fopen("apropiate1.out", "w");
| ^~~~
main.c:21:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
21 | fscanf(fin, "%d%d", &n, &c);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:24:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
24 | fscanf(fin, "%d", &nr);
| ^~~~~~~~~~~~~~~~~~~~~~
main.c:44:13: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
44 | fscanf(fin, "%d", c1);
| ^~~~~~~~~~~~~~~~~~~~~
main.c:47:13: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
47 | fscanf(fin, "%d", c2);
| ^~~~~~~~~~~~~~~~~~~~~
main.c:51:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
51 | fscanf(fin, "%d", c1);
| ^~~~~~~~~~~~~~~~~~~~~
main.c:54:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
54 | fscanf(fin, "%d", c2);
| ^~~~~~~~~~~~~~~~~~~~~