Borderou de evaluare (job #2181603)
Utilizator | Data | 21 martie 2018 19:16:17 | |
---|---|---|---|
Problema | Potrivirea sirurilor | Status | done |
Runda | Arhiva educationala | Compilator | c | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.c: In function ‘main’:
user.c:48:40: error: ‘MAP_POPULATE’ undeclared (first use in this function)
buf = mmap(NULL, CHUNK, PROT_READ, MAP_POPULATE | MAP_UNINITIALIZED, open("strmatch.in", O_RDONLY), 0);
^
user.c:48:40: note: each undeclared identifier is reported only once for each function it appears in
user.c:48:55: error: ‘MAP_UNINITIALIZED’ undeclared (first use in this function)
buf = mmap(NULL, CHUNK, PROT_READ, MAP_POPULATE | MAP_UNINITIALIZED, open("strmatch.in", O_RDONLY), 0);
^
user.c:45:5: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result]
freopen("strmatch.in", "r", stdin);
^
user.c:46:5: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result]
freopen("strmatch.out", "w", stdout);
^
user.c:106:5: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
write(1, obuf, oblen);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !