Borderou de evaluare (job #2498370)
Utilizator | Data | 23 noiembrie 2019 20:42:04 | |
---|---|---|---|
Problema | Algoritmul Bellman-Ford | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:91:17: error: field 'sb' has incomplete type 'stat'
struct stat sb;
^~
main.cpp:91:12: note: forward declaration of 'struct stat'
struct stat sb;
^~~~
main.cpp: In constructor 'parser::parser(const char*)':
main.cpp:63:34: error: 'O_RDONLY' was not declared in this scope
int fd = open(file_name, O_RDONLY);
^~~~~~~~
main.cpp:63:42: error: 'open' was not declared in this scope
int fd = open(file_name, O_RDONLY);
^
main.cpp:65:22: error: 'fstat' was not declared in this scope
fstat(fd, &sb);
^
main.cpp:66:45: error: 'PROT_READ' was not declared in this scope
buffer = (char*)mmap(0, sb.st_size, PROT_READ, MAP_PRIVATE | MAP_NORESERVE, fd, 0);
^~~~~~~~~
main.cpp:66:56: error: 'MAP_PRIVATE' was not declared in this scope
buffer = (char*)mmap(0, sb.st_size, PROT_READ, MAP_PRIVATE | MAP_NORESERVE, fd, 0);
^~~~~~~~~~~
main.cpp:66:70: error: 'MAP_NORESERVE' was not declared in this scope
buffer = (char*)mmap(0, sb.st_size, PROT_READ, MAP_PRIVATE | MAP_NORESERVE, fd, 0);
^~~~~~~~~~~~~
main.cpp:66:90: error: 'mmap' was not declared in this scope
buffer = (char*)mmap(0, sb.st_size, PROT_READ, MAP_PRIVATE | MAP_NORESERVE, fd, 0);
^
main.cpp:67:17: error: 'close' was not declared in this scope
close(fd);
^
main.cpp: In destructor 'parser::~parser()':
main.cpp:87:34: error: 'munmap' was not declared in this scope
munmap(buffer, sb.st_size);
^
main.cpp: At global scope:
main.cpp:133:5: error: 'fstream' does not name a type
fstream output_file;
^~~~~~~
main.cpp: In constructor 'writer::writer(const char*)':
main.cpp:103:9: error: 'output_file' was not declared in this scope
output_file.open(file_name, ios::out | ios::binary);
^~~~~~~~~~~
main.cpp:103:37: error: 'ios' has not been declared
output_file.open(file_name, ios::out | ios::binary);
^~~
main.cpp:103:48: error: 'ios' has not been declared
output_file.open(file_name, ios::out | ios::binary);
^~~
main.cpp: In destructor 'writer::~writer()':
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !