Borderou de evaluare (job #3223518)
Utilizator | Data | 13 aprilie 2024 12:46:47 | |
---|---|---|---|
Problema | Chat | Status | done |
Runda | Universitatea Tehnică din Cluj-Napoca - 2024 - Concurs | Compilator | c-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'main':
main.c:11:12: error: 'PF' undeclared (first use in this function); did you mean 'pf'?
11 | fscanf(PF, "%d", &T);
| ^~
| pf
main.c:11:12: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:9: error: unknown type name 'bool'
15 | bool a =true;
| ^~~~
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:15:17: error: 'true' undeclared (first use in this function)
15 | bool a =true;
| ^~~~
main.c:15:17: note: 'true' is defined in header '<stdbool.h>'; did you forget to '#include <stdbool.h>'?
main.c:18:26: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'int' [-Wformat=]
18 | fscanf(pf, "%d", v[i]);
| ~^ ~~~~
| | |
| | int
| int *
main.c:20:15: error: 'false' undeclared (first use in this function)
20 | a=false;
| ^~~~~
main.c:20:15: note: 'false' is defined in header '<stdbool.h>'; did you forget to '#include <stdbool.h>'?
main.c:23:21: warning: passing argument 1 of 'fprintf' from incompatible pointer type [-Wincompatible-pointer-types]
23 | fprintf("DA\n");
| ^~~~~~
| |
| char *
In file included from main.c:1:
/usr/include/stdio.h:350:38: note: expected 'FILE * restrict' but argument is of type 'char *'
350 | extern int fprintf (FILE *__restrict __stream,
| ~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:23:13: error: too few arguments to function 'fprintf'
23 | fprintf("DA\n");
| ^~~~~~~
/usr/include/stdio.h:350:12: note: declared here
350 | extern int fprintf (FILE *__restrict __stream,
| ^~~~~~~
main.c:25:13: warning: implicit declaration of function 'fprinf'; did you mean 'fprintf'? [-Wimplicit-function-declaration]
25 | fprinf("NU\n");
| ^~~~~~
| fprintf
main.c:7:11: warning: unused variable 'pfo' [-Wunused-variable]
7 | FILE *pfo = fopen("chat.out","w");
| ^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !