Borderou de evaluare (job #1430774)
Utilizator | Data | 8 mai 2015 19:56:14 | |
---|---|---|---|
Problema | Cuplaj maxim in graf bipartit | Status | done |
Runda | Arhiva educationala | Compilator | c | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.c:3:1: error: initializer element is not constant
FILE* fin = fopen("cuplaj.in", "r");
^
user.c:4:1: error: initializer element is not constant
FILE* fout = fopen("cuplaj.out", "w");
^
user.c:8:1: error: unknown type name ‘bool’
bool found, viz[20000];
^
user.c:10:1: error: unknown type name ‘bool’
bool find(int i);
^
user.c: In function ‘main’:
user.c:28:11: error: ‘new’ undeclared (first use in this function)
lv[i] = new int[nv[i]];
^
user.c:28:11: note: each undeclared identifier is reported only once for each function it appears in
user.c:28:15: error: expected ‘;’ before ‘int’
lv[i] = new int[nv[i]];
^
user.c:69:10: error: ‘true’ undeclared (first use in this function)
found = true;
^
user.c:71:11: error: ‘false’ undeclared (first use in this function)
found = false;
^
user.c: At top level:
user.c:91:1: error: unknown type name ‘bool’
bool find(int nod) {
^
user.c: In function ‘find’:
user.c:95:13: error: ‘true’ undeclared (first use in this function)
viz[nod] = true;
^
user.c:111:9: error: ‘false’ undeclared (first use in this function)
return false;
^
user.c: In function ‘main’:
user.c:18:8: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d %d %d", &N, &M, &e);
^
user.c:21:9: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d %d", &x, &y);
^
user.c: In function ‘find’:
user.c:112:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !