Change History (2)

comment:1 Changed 3 years ago by Святослав Власов

Type: ожидается проверкаожидаются исправления

Не собрался даже smoke_compile.cpp:

[681][svloyso:lab_13]$ make
mkdir -p obj
g++ -O2 -Wall -Werror -std=c++17 -Iinclude -c -MMD -o obj/main.o src/main.cpp
g++ -O2 -Wall -Werror -std=c++17 -Iinclude -c -MMD -o obj/smoke_compile.o src/smoke_compile.cpp
In file included from include/my_array.h:82,
                 from src/smoke_compile.cpp:1:
include/my_array_impl.h: In member function ‘constexpr const T& lab_13::my_array<T, N>::at(std::size_t) const’:
include/my_array_impl.h:15:20: error: ‘out_of_range’ is not a member of ‘std’
   15 |         throw std::out_of_range("Out of range: " + std::to_string(index) +
      |                    ^~~~~~~~~~~~
include/my_array_impl.h:15:57: error: ‘to_string’ is not a member of ‘std’; did you mean ‘u32string’?
   15 |         throw std::out_of_range("Out of range: " + std::to_string(index) +
      |                                                         ^~~~~~~~~
      |                                                         u32string
include/my_array_impl.h:16:59: error: ‘to_string’ is not a member of ‘std’; did you mean ‘u32string’?
   16 |                                 " is larger than " + std::to_string(N));
      |                                                           ^~~~~~~~~
      |                                                           u32string
include/my_array_impl.h: In member function ‘constexpr T& lab_13::my_array<T, N>::at(std::size_t)’:
include/my_array_impl.h:24:20: error: ‘out_of_range’ is not a member of ‘std’
   24 |         throw std::out_of_range("Out of range: " + std::to_string(index) +
      |                    ^~~~~~~~~~~~
include/my_array_impl.h:24:57: error: ‘to_string’ is not a member of ‘std’; did you mean ‘u32string’?
   24 |         throw std::out_of_range("Out of range: " + std::to_string(index) +
      |                                                         ^~~~~~~~~
      |                                                         u32string
include/my_array_impl.h:25:59: error: ‘to_string’ is not a member of ‘std’; did you mean ‘u32string’?
   25 |                                 " is larger than " + std::to_string(N));
      |                                                           ^~~~~~~~~
      |                                                           u32string
include/my_array_impl.h: In member function ‘constexpr bool lab_13::my_array<bool, N>::at(std::size_t) const’:
include/my_array_impl.h:137:20: error: ‘out_of_range’ is not a member of ‘std’
  137 |         throw std::out_of_range("Out of range: " + std::to_string(index) +
      |                    ^~~~~~~~~~~~
include/my_array_impl.h:137:57: error: ‘to_string’ is not a member of ‘std’; did you mean ‘u32string’?
  137 |         throw std::out_of_range("Out of range: " + std::to_string(index) +
      |                                                         ^~~~~~~~~
      |                                                         u32string
include/my_array_impl.h:138:59: error: ‘to_string’ is not a member of ‘std’; did you mean ‘u32string’?
  138 |                                 " is larger than " + std::to_string(N));
      |                                                           ^~~~~~~~~
      |                                                           u32string
include/my_array_impl.h: In member function ‘constexpr lab_13::my_array<bool, N>::proxy lab_13::my_array<bool, N>::at(std::size_t)’:
include/my_array_impl.h:146:20: error: ‘out_of_range’ is not a member of ‘std’
  146 |         throw std::out_of_range("Out of range: " + std::to_string(index) +
      |                    ^~~~~~~~~~~~
include/my_array_impl.h:146:57: error: ‘to_string’ is not a member of ‘std’; did you mean ‘u32string’?
  146 |         throw std::out_of_range("Out of range: " + std::to_string(index) +
      |                                                         ^~~~~~~~~
      |                                                         u32string
include/my_array_impl.h:147:59: error: ‘to_string’ is not a member of ‘std’; did you mean ‘u32string’?
  147 |                                 " is larger than " + std::to_string(N));
      |                                                           ^~~~~~~~~
      |                                                           u32string

comment:2 Changed 3 years ago by Святослав Власов

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

0/10

Note: See TracTickets for help on using tickets.