Opened 3 years ago
Closed 3 years ago
#666 closed ожидается проверка (задача сдана)
HW #13
Reported by: | Georgiy Angeni | Owned by: | Святослав Власов |
---|---|---|---|
Component: | WW_array | Version: | 2.0 |
Keywords: | Cc: |
Description
Change History (5)
comment:1 Changed 3 years ago by
comment:2 Changed 3 years ago by
Type: | ожидается проверка → ожидаются исправления |
---|
О, да судя по номеру тикета, я невероятно везучий :)
С чем я тебя и поздравляю!
У тебя не собралось
src/main.cpp: In instantiation of ‘void test_write_read() [with T = int; long unsigned int N = 50]’: src/main.cpp:226:30: required from here src/main.cpp:88:13: error: assignment of read-only location ‘a.lab_13::my_array<int, 50>::at(((int)i))’ 88 | a.at(i) = get_object<T>(i); | ~~~~~~~~^~~~~~~~~~~~~~~~~~ src/main.cpp: In instantiation of ‘void test_write_read() [with T = IntWrapper; long unsigned int N = 50]’: src/main.cpp:227:37: required from here src/main.cpp:88:13: error: passing ‘const IntWrapper’ as ‘this’ argument discards qualifiers [-fpermissive] src/main.cpp:59:8: note: in call to ‘IntWrapper& IntWrapper::operator=(IntWrapper&&)’ 59 | struct IntWrapper { | ^~~~~~~~~~ src/main.cpp: In instantiation of ‘void test_write_change_read() [with T = int; long unsigned int N = 50]’: src/main.cpp:229:37: required from here src/main.cpp:110:5: error: increment of read-only location ‘a.lab_13::my_array<int, 50>::at(((int)i))’ 110 | ++a.at(i); | ^~~~~~~~~ src/main.cpp: In instantiation of ‘void test_write_change_read() [with T = IntWrapper; long unsigned int N = 50]’: src/main.cpp:230:44: required from here src/main.cpp:110:5: error: passing ‘const IntWrapper’ as ‘this’ argument discards qualifiers [-fpermissive] src/main.cpp:62:15: note: in call to ‘IntWrapper& IntWrapper::operator++()’ 62 | IntWrapper& operator++() { | ^~~~~~~~ src/main.cpp: In instantiation of ‘void test_write_read() [with T = bool; long unsigned int N = 50]’: src/main.cpp:250:31: required from here src/main.cpp:88:9: error: lvalue required as left operand of assignment 88 | a.at(i) = get_object<T>(i); | ~~~~^~~ make: *** [Makefile:17: obj/main.o] Error 1
comment:4 Changed 3 years ago by
Type: | ожидаются исправления → ожидается проверка |
---|---|
Version: | 1.0 → 2.0 |
comment:5 Changed 3 years ago by
Resolution: | → задача сдана |
---|---|
Status: | assigned → closed |
Всё ок, но минус балл за отправку после дедлайна 9/10
Note: See
TracTickets for help on using
tickets.
О, да судя по номеру тикета, я невероятно везучий :)