fork download
  1. //CONSTRUCTOR
  2. std::vector<std::array<Month*,12>> date;
  3.  
  4.  
  5. //DESTRUCTOR
  6. for (int i = 0; i < date.size(); i++)
  7. for (int j = 0; j < date[i].size(); i++)
  8. delete date[j][];
  9.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:2:6: error: 'vector' in namespace 'std' does not name a template type
 std::vector<std::array<Month*,12>> date;
      ^
prog.cpp:6:1: error: expected unqualified-id before 'for'
 for (int i = 0; i < date.size(); i++)
 ^
prog.cpp:6:17: error: 'i' does not name a type
 for (int i = 0; i < date.size(); i++)
                 ^
prog.cpp:6:34: error: 'i' does not name a type
 for (int i = 0; i < date.size(); i++)
                                  ^
prog.cpp:7:25: error: 'j' does not name a type
         for (int j = 0; j < date[i].size(); i++)
                         ^
prog.cpp:7:45: error: 'i' does not name a type
         for (int j = 0; j < date[i].size(); i++)
                                             ^
stdout
Standard output is empty