Borderou de evaluare (job #751764)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Căutare binară | Compilator | c-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 16 dec. 2023 18:52:55 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c:5:13: error: initializer element is not constant
5 | FILE *fin = fopen("cautbin.in", "rt");
| ^~~~~
main.c:6:14: error: initializer element is not constant
6 | FILE *fout = fopen("cautbin.out", "wt");
| ^~~~~
main.c: In function 'main':
main.c:76:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
76 | fscanf(fin, "%d", &n);
| ^~~~~~~~~~~~~~~~~~~~~
main.c:80:17: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
80 | fscanf(fin, "%d", &input[i]);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:83:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
83 | fscanf(fin, "%d", &T);
| ^~~~~~~~~~~~~~~~~~~~~
main.c:86:17: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
86 | fscanf(fin, "%d %d", &optiune, &nr);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~