Borderou de evaluare (job #3223492)
Utilizator | Data | 13 aprilie 2024 12:30:46 | |
---|---|---|---|
Problema | ChatGGG | 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:7:17: error: too few arguments to function 'fopen'
7 | FILE *pfo = fopen("chatggg.out"),"w";
| ^~~~~
In file included from main.c:1:
/usr/include/stdio.h:258:14: note: declared here
258 | extern FILE *fopen (const char *__restrict __filename,
| ^~~~~
main.c:7:38: error: expected identifier or '(' before string constant
7 | FILE *pfo = fopen("chatggg.out"),"w";
| ^~~
main.c:8:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
8 | int *v *w, *q;
| ^
main.c:8:13: error: 'w' undeclared (first use in this function)
8 | int *v *w, *q;
| ^
main.c:8:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:17: error: 'q' undeclared (first use in this function)
8 | int *v *w, *q;
| ^
main.c:8:14: warning: left-hand operand of comma expression has no effect [-Wunused-value]
8 | int *v *w, *q;
| ^
main.c:10:5: warning: implicit declaration of function 'fsncaf'; did you mean 'fscanf'? [-Wimplicit-function-declaration]
10 | fsncaf(pf, "%d", &L);
| ^~~~~~
| fscanf
main.c:13:9: warning: implicit declaration of function 'fscnaf'; did you mean 'fscanf'? [-Wimplicit-function-declaration]
13 | fscnaf(pf, "%d", v[j]);
| ^~~~~~
| fscanf
main.c:13:26: error: 'v' undeclared (first use in this function)
13 | fscnaf(pf, "%d", v[j]);
| ^
main.c:18:13: error: 'k' undeclared (first use in this function)
18 | for(k=0; k<L/2; h++)
| ^
main.c:18:25: error: 'h' undeclared (first use in this function)
18 | for(k=0; k<L/2; h++)
| ^
main.c:20:23: error: 'j' undeclared (first use in this function)
20 | if(w[i]>w[j])
| ^
main.c:66:10: warning: implicit declaration of function 'fprinf'; did you mean 'fprintf'? [-Wimplicit-function-declaration]
66 | {fprinf(pfo, v[i]);
| ^~~~~~
| fprintf
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !