Opened 3 years ago

Closed 3 years ago

#310 closed ожидается проверка (задача сдана)

WW_vector_int Panenkov lab_06

Reported by: Semyon Panenkov Owned by: Антон Филатов
Component: WW_vector_int Version: 1.0
Keywords: Cc:

Description


Change History (1)

comment:1 Changed 3 years ago by Антон Филатов

Resolution: задача сдана
Status: assignedclosed

не собирается

mkdir -p bin
g++ -std=c++14 -Wall -pedantic -c -o bin/my_vector.o -Iinclude src/my_vector.cpp
src/my_vector.cpp: In member function ‘void MyVector::insert(std::size_t, int)’:
src/my_vector.cpp:92:5: error: ‘memmove’ was not declared in this scope
    memmove(_data + index + 1, _data + index, (_sz - index) * sizeof(int));
    ^~~~~~~
src/my_vector.cpp: In member function ‘void MyVector::erase(std::size_t)’:
src/my_vector.cpp:98:5: error: ‘memmove’ was not declared in this scope
    memmove(_data + index, _data + index + 1, (_sz - index - 1) * sizeof(int));
    ^~~~~~~
Makefile:15: recipe for target 'bin/my_vector.o' failed
make: *** [bin/my_vector.o] Error 1

Руками пофиксил, но будьте внимательны. Не давайте вашему маку думать за вас

В целом всё ок, так что снижать за это не буду. Лайк за своп-трик

10/10

Note: See TracTickets for help on using tickets.