Opened 4 years ago

Closed 4 years ago

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

WW #11

Reported by: sukhodolskiy.maksim Owned by: Sokolov Viacheslav
Component: WW cpp_io Version: 1.0
Keywords: Cc:

Description


Change History (4)

comment:1 Changed 4 years ago by Sokolov Viacheslav

In file included from src/bin_manip.cpp:1:
include/bin_manip.h:6:24: error: variable ‘std::string dec_to_bin’ has initializer but incomplete type
    6 | std::string dec_to_bin(int32_t x);
      |                        ^~~~~~~
include/bin_manip.h:6:24: error: ‘int32_t’ was not declared in this scope
include/bin_manip.h:8:1: error: ‘int32_t’ does not name a type
    8 | int32_t bin_to_dec(std::string &s);
      | ^~~~~~~
include/bin_manip.h:21:5: error: ‘int32_t’ does not name a type
   21 |     int32_t _val;
      |     ^~~~~~~
include/bin_manip.h:35:5: error: ‘int32_t’ does not name a type
   35 |     int32_t &_val;
      |     ^~~~~~~
src/bin_manip.cpp: In constructor ‘write_le_int32::write_le_int32(int)’:
src/bin_manip.cpp:27:43: error: class ‘write_le_int32’ does not have any field named ‘_val’
   27 | write_le_int32::write_le_int32(int val) : _val{val} {}
      |                                           ^~~~
src/bin_manip.cpp: In member function ‘std::ofstream& write_le_int32::operator()(std::ofstream&) const’:
src/bin_manip.cpp:30:22: error: ‘_val’ was not declared in this scope
   30 |     os << dec_to_bin(_val);
      |                      ^~~~
src/bin_manip.cpp: In member function ‘std::ostream& write_le_int32::operator()(std::ostream&) const’:
src/bin_manip.cpp:35:22: error: ‘_val’ was not declared in this scope
   35 |     os << dec_to_bin(_val);
      |                      ^~~~
src/bin_manip.cpp: In member function ‘std::stringstream& write_le_int32::operator()(std::stringstream&) const’:
src/bin_manip.cpp:40:22: error: ‘_val’ was not declared in this scope
   40 |     os << dec_to_bin(_val);
      |                      ^~~~
src/bin_manip.cpp: In constructor ‘read_le_int32::read_le_int32(int&)’:
src/bin_manip.cpp:57:42: error: class ‘read_le_int32’ does not have any field named ‘_val’
   57 | read_le_int32::read_le_int32(int &val) : _val{val} {}
      |                                          ^~~~
src/bin_manip.cpp: In member function ‘std::ifstream& read_le_int32::operator()(std::ifstream&) const’:
src/bin_manip.cpp:62:5: error: ‘_val’ was not declared in this scope
   62 |     _val = bin_to_dec(result);
      |     ^~~~
src/bin_manip.cpp: In member function ‘std::istream& read_le_int32::operator()(std::istream&) const’:
src/bin_manip.cpp:69:5: error: ‘_val’ was not declared in this scope
   69 |     _val = bin_to_dec(result);
      |     ^~~~
src/bin_manip.cpp: In member function ‘std::stringstream& read_le_int32::operator()(std::stringstream&) const’:
src/bin_manip.cpp:76:5: error: ‘_val’ was not declared in this scope
   76 |     _val = bin_to_dec(result);
      |     ^~~~
Makefile:14: recipe for target 'obj/bin_manip.o' failed
make: *** [obj/bin_manip.o] Error 1

comment:2 Changed 4 years ago by Sokolov Viacheslav

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

comment:3 Changed 4 years ago by Sokolov Viacheslav

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

comment:4 Changed 4 years ago by Sokolov Viacheslav

Resolution: задача НЕ сдана
Status: reopenedclosed
Note: See TracTickets for help on using tickets.