Borderou de evaluare (job #859232)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Apropiate1 (clasa a 6-a) | Compilator | c |
| Rundă | Arhiva de probleme | Status | evaluat |
| Dată | 15 apr. 2026 18:31:50 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'main':
main.c:11:34: error: passing argument 2 of 'fopen' makes pointer from integer without a cast [-Wint-conversion]
11 | fout=fopen("apropiate1.out", 'w');
| ^~~
| |
| int
In file included from main.c:1:
/usr/include/stdio.h:268:44: note: expected 'const char * restrict' but argument is of type 'int'
268 | const char *__restrict __modes)
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
main.c:10:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
10 | fscanf(fin, "%d %d", &N, &C);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:25:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
25 | fscanf(fin, "%d", &A);
| ^~~~~~~~~~~~~~~~~~~~~