Borderou de evaluare (job #2108182)
Utilizator | Data | 17 ianuarie 2018 23:17:19 | |
---|---|---|---|
Problema | Roata | Status | done |
Runda | Arhiva de probleme | Compilator | c | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.c:3:1: error: initializer element is not constant
FILE *f1 = fopen("roata.in","r");
^
user.c:4:1: error: initializer element is not constant
FILE *f2 = fopen("roata.out","w");
^
user.c:10:5: error: variably modified ‘r’ at file scope
int r[P], ord[N];
^
user.c:10:11: error: variably modified ‘ord’ at file scope
int r[P], ord[N];
^
user.c:11:1: error: unknown type name ‘bool’
bool gol[N];
^
user.c:11:6: error: variably modified ‘gol’ at file scope
bool gol[N];
^
user.c: In function ‘main’:
user.c:32:18: error: ‘true’ undeclared (first use in this function)
gol[i] = true;
^
user.c:32:18: note: each undeclared identifier is reported only once for each function it appears in
user.c:16:11: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f1,"%d%d",&n,&p);
^
user.c:19:15: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f1,"%d",&r[i]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !