Borderou de evaluare (job #2473810)
Utilizator | Data | 14 octombrie 2019 12:29:25 | |
---|---|---|---|
Problema | A+B | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:94:10: error: 'vector' in namespace 'std' does not name a template type
std::vector<char*> buffers;
^~~~~~
main.cpp:95:10: error: 'vector' in namespace 'std' does not name a template type
std::vector<size_t> buffer_sizes;
^~~~~~
main.cpp: In constructor 'mapping_writer::mapping_writer(const char*)':
main.cpp:24:9: error: 'buffers' was not declared in this scope
buffers.push_back((char*)mmap(0, SIZE, PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0));
^~~~~~~
main.cpp:25:9: error: 'buffer_sizes' was not declared in this scope
buffer_sizes.push_back(0);
^~~~~~~~~~~~
main.cpp: In lambda function:
main.cpp:34:17: error: 'buffers' was not declared in this scope
buffers.push_back((char*)mmap(0, SIZE, PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0));
^~~~~~~
main.cpp:35:17: error: 'buffer_sizes' was not declared in this scope
buffer_sizes.push_back(index);
^~~~~~~~~~~~
main.cpp: In member function 'mapping_writer& mapping_writer::operator<<(T)':
main.cpp:42:13: error: 'buffers' was not declared in this scope
buffers[active_buffer][index] = '0';
^~~~~~~
main.cpp:49:13: error: 'buffers' was not declared in this scope
buffers[active_buffer][index] = nr[--aux];
^~~~~~~
main.cpp:50:9: error: 'buffer_sizes' was not declared in this scope
buffer_sizes[active_buffer] = index;
^~~~~~~~~~~~
main.cpp: In lambda function:
main.cpp:58:17: error: 'buffers' was not declared in this scope
buffers.push_back((char*)mmap(0, SIZE, PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0));
^~~~~~~
main.cpp:59:17: error: 'buffer_sizes' was not declared in this scope
buffer_sizes.push_back(index);
^~~~~~~~~~~~
main.cpp: In member function 'mapping_writer& mapping_writer::operator<<(const char*)':
main.cpp:66:13: error: 'buffers' was not declared in this scope
buffers[active_buffer][index] = target[aux++], inc();
^~~~~~~
main.cpp: In destructor 'mapping_writer::~mapping_writer()':
main.cpp:72:23: error: 'buffer_sizes' was not declared in this scope
for (auto i : buffer_sizes)
^~~~~~~~~~~~
main.cpp:80:51: error: 'buffers' was not declared in this scope
for (unsigned i = 0, accumulated = 0; i < buffers.size(); ++i) {
^~~~~~~
main.cpp:81:55: error: 'buffer_sizes' was not declared in this scope
fastMemcpy(map + accumulated, buffers[i], buffer_sizes[i]);
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !